Skip to content
Snippets Groups Projects
Commit cc0e2ba1 authored by Alex Sukhanov's avatar Alex Sukhanov Committed by Michael Niedermayer
Browse files

Enable parser in FLV demuxer for H264 codec

parent f6cd447b
No related branches found
No related tags found
No related merge requests found
...@@ -256,6 +256,7 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment