Browse Source

Enable parser in FLV demuxer for H264 codec

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Alex Sukhanov Michael Niedermayer 12 years ago
parent
commit
cc0e2ba1aa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/flvdec.c

+ 1
- 0
libavformat/flvdec.c View File

@@ -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() return 1; // 1 byte body size adjustment for flv_read_packet()
case FLV_CODECID_H264: case FLV_CODECID_H264:
vcodec->codec_id = AV_CODEC_ID_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 return 3; // not 4, reading packet type will consume one byte
case FLV_CODECID_MPEG4: case FLV_CODECID_MPEG4:
vcodec->codec_id = AV_CODEC_ID_MPEG4; vcodec->codec_id = AV_CODEC_ID_MPEG4;


Loading…
Cancel
Save