avformat/oggparseogm: Enable parser for mpeg4
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 29 Oct 2015 23:31:13 +0000 (00:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 30 Oct 2015 01:31:49 +0000 (02:31 +0100)
Fixes regression with iJi.ogv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggparseogm.c

index ae8c3c8..d63c83b 100644 (file)
@@ -57,6 +57,8 @@ ogm_header(AVFormatContext *s, int idx)
             tag = bytestream2_get_le32(&p);
             st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag);
             st->codec->codec_tag = tag;
+            if (st->codec->codec_id == AV_CODEC_ID_MPEG4)
+                st->need_parsing = AVSTREAM_PARSE_HEADERS;
         } else if (bytestream2_peek_byte(&p) == 't') {
             st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
             st->codec->codec_id = AV_CODEC_ID_TEXT;