diff options
author | Alex Sukhanov <alx.sukhanov@gmail.com> | 2013-12-12 15:10:10 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-15 04:18:13 +0100 |
commit | cc0e2ba1aa93d5bdfe99386af63ad1c8d20079d8 (patch) | |
tree | 25f258a833eaa1776f25fa3e276f178b4cbacfd6 /libavformat/flvdec.c | |
parent | f6cd447bf1059d468249259189ca6c0508e5d461 (diff) | |
download | ffmpeg-cc0e2ba1aa93d5bdfe99386af63ad1c8d20079d8.tar.gz |
Enable parser in FLV demuxer for H264 codec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 1 |
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; |