Commit 4f52ad38 authored by Sebastian Dröge's avatar Sebastian Dröge

theoradec: Set DECODE_ONLY flag on all header packets

parent ba8e7062
......@@ -784,6 +784,8 @@ theora_dec_decode_buffer (GstTheoraDec * dec, GstBuffer * buf,
if (packet.bytes && packet.packet[0] & 0x80) {
if (dec->have_header) {
GST_WARNING_OBJECT (GST_OBJECT (dec), "Ignoring header");
GST_VIDEO_CODEC_FRAME_FLAG_SET (frame,
GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY);
result = GST_CUSTOM_FLOW_DROP;
goto done;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment