[FFmpeg-devel] [PATCH v3] libavcodec/libx264: fix reference frame computation based on level

Josh Brewster josh.brewster at protonmail.com
Sun Apr 19 03:13:34 EEST 2020


> >I only made sure that the level was positive because its initial
> > value was -1.
> >
> > > else if (x4->params.i_level_idc >= 0) {
> > > Let me know if I need to reject 0 too. It seemed like premature optimization
> > > as the level simply wouldn't be present in x264_levels.
>
> I'd say yes, level_idc = 0 is possible but invalid by PARSE_X264_OPT(), which seems
> make no sense to calculate refs from x264_levels[] table.
>
> -   Linjie
Changed to > 0, thanks.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-libx264-fix-reference-frame-computation-b.patch
Type: text/x-patch
Size: 2147 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200419/4a3a0b17/attachment.bin>


More information about the ffmpeg-devel mailing list