diff options
author | llyyr <llyyr.public@gmail.com> | 2023-09-10 20:55:24 +0530 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2023-09-10 20:05:07 +0100 |
commit | ded4478b8b6dbe939113b38df53778972e3af70e (patch) | |
tree | 115c89c1583e954261b797a289e33570b65a9d61 | |
parent | 06241c31546a089eecbd5504fe6c9e27fdc68ea0 (diff) | |
download | ffmpeg-ded4478b8b6dbe939113b38df53778972e3af70e.tar.gz |
hevc_ps: fix fixed_rate check
Fixes: fc429d785e9e24c5520ce716d4bc3b5547e581eb
Since fc429d785e9e24c5520ce716d4bc3b5547e581eb splits the fixed_rate
flag into general and within_cvs, check for both.
-rw-r--r-- | libavcodec/hevc_ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index ac3fe55b07..7507d2bf9c 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -409,7 +409,8 @@ static int decode_hrd(GetBitContext *gb, int common_inf_present, if (!hdr->flags.fixed_pic_rate_general_flag) hdr->flags.fixed_pic_rate_within_cvs_flag = get_bits1(gb); - if (hdr->flags.fixed_pic_rate_within_cvs_flag) + if (hdr->flags.fixed_pic_rate_within_cvs_flag || + hdr->flags.fixed_pic_rate_general_flag) hdr->elemental_duration_in_tc_minus1[i] = get_ue_golomb_long(gb); else hdr->flags.low_delay_hrd_flag = get_bits1(gb); |