[FFmpeg-devel] [PATCH] hevc_ps: fix cpb_cnt_minus1 initialization and fixed_rate check

Derek Buitenhuis derek.buitenhuis at gmail.com
Sun Sep 10 18:16:10 EEST 2023


On 9/10/2023 4:00 PM, llyyr wrote:
> Fixes: fc429d785e9e24c5520ce716d4bc3b5547e581eb
> 
> cpb_cnt was initialized to 1 before
> fc429d785e9e24c5520ce716d4bc3b5547e581eb, so cpb_cnt_minus1 should be
> initialized to 0 instead of 1.
> 
> Since we split fixed_rate into a general flag and a within_cvs_flag now,
> check for both in conditional.
> ---
>  libavcodec/hevc_ps.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Should be two commits, I think.

Also, cpb_cnt_minus1 is being passed to decode_sublayer_hrd() below, and needs
a +1 there.

- Derek


More information about the ffmpeg-devel mailing list