summaryrefslogtreecommitdiff
path: root/ext/theora/gsttheoradec.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-09 10:40:19 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-09 10:40:19 +0200
commit4f52ad38e40280672bc04464e87065fb67679051 (patch)
treeb1b03e89516ed1d50c7be9f966b86483ed4feb65 /ext/theora/gsttheoradec.c
parentba8e7062a4edec39e492dd4db2fa291782ccedf9 (diff)
theoradec: Set DECODE_ONLY flag on all header packets
Diffstat (limited to 'ext/theora/gsttheoradec.c')
-rw-r--r--ext/theora/gsttheoradec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c
index ed5d3f42a..d4bd02433 100644
--- a/ext/theora/gsttheoradec.c
+++ b/ext/theora/gsttheoradec.c
@@ -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;
}