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

Steven Liu lingjiujianke at gmail.com
Thu Apr 6 15:30:51 EEST 2023


James Almer <jamrial at gmail.com> 于2023年4月6日周四 20:18写道:
>
> 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.
Ok, resubmit as
https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230406122416.93934-1-lq@chinaffmpeg.org/
>
> > +        ret = 3;
> > +        break;

Thanks James


Steven


More information about the ffmpeg-devel mailing list