summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Sukhanov <alx.sukhanov@gmail.com>2013-12-12 15:10:10 -0800
committerMichael Niedermayer <michaelni@gmx.at>2013-12-15 04:18:13 +0100
commitcc0e2ba1aa93d5bdfe99386af63ad1c8d20079d8 (patch)
tree25f258a833eaa1776f25fa3e276f178b4cbacfd6
parentf6cd447bf1059d468249259189ca6c0508e5d461 (diff)
Enable parser in FLV demuxer for H264 codec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/flvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 1024001a47..440165279b 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -256,6 +256,7 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream,
return 1; // 1 byte body size adjustment for flv_read_packet()
case FLV_CODECID_H264:
vcodec->codec_id = AV_CODEC_ID_H264;
+ vstream->need_parsing = AVSTREAM_PARSE_HEADERS;
return 3; // not 4, reading packet type will consume one byte
case FLV_CODECID_MPEG4:
vcodec->codec_id = AV_CODEC_ID_MPEG4;