[FFmpeg-devel] [PATCH 2/2] avformat/flvdec: support demux HEVC in Enhancing FLV

James Almer jamrial at gmail.com
Thu Apr 6 15:18:03 EEST 2023


On 4/6/2023 9:12 AM, Steven Liu wrote:
> @@ -372,6 +401,11 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream,
>           par->codec_id = AV_CODEC_ID_MPEG4;
>           ret = 3;
>           break;
> +    case FLV_CODECID_HEVC:
> +        par->codec_id = AV_CODEC_ID_HEVC;
> +        vstreami->need_parsing = AVSTREAM_PARSE_NONE;

Why none? You should use AVSTREAM_PARSE_HEADERS, same as h264, as the 
container will not provide enough information about the bitstream in the 
absence of a decoder.

> +        ret = 3;
> +        break;


More information about the ffmpeg-devel mailing list