[FFmpeg-cvslog] Enable parser in FLV demuxer for H264 codec

Alex Sukhanov git at videolan.org
Sun Dec 15 05:02:17 CET 2013


ffmpeg | branch: master | Alex Sukhanov <alx.sukhanov at gmail.com> | Thu Dec 12 15:10:10 2013 -0800| [cc0e2ba1aa93d5bdfe99386af63ad1c8d20079d8] | committer: Michael Niedermayer

Enable parser in FLV demuxer for H264 codec

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc0e2ba1aa93d5bdfe99386af63ad1c8d20079d8
---

 libavformat/flvdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 1024001..4401652 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;



More information about the ffmpeg-cvslog mailing list