theoradec: Set DECODE_ONLY flag on all header packets

This commit is contained in:
Sebastian Dröge 2013-05-09 10:40:19 +02:00
parent ba8e7062a4
commit 4f52ad38e4

View file

@ -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;
}