Commit 3d1bdd7718 for ffmpeg
commit 3d1bdd77181aef2668cbf83fc807c61aa66322b0
Author: romainhedouin <romain.hedouin@epitech.eu>
Date: Wed Oct 14 21:07:19 2026 +0200
avcodec/evc_ps: store dpb_output_delay_length_minus1 in hrd_parameters
hrd_parameters() read the third 5-bit length field into
cpb_removal_delay_length_minus1 a second time, overwriting the value
just read, and never set dpb_output_delay_length_minus1, which the
struct declares in that order (as HEVC does). Bit positions are
unchanged, and nothing currently reads these fields.
Tested: make fate passes, including fate-lavf-fate-evc.mp4.
Signed-off-by: romainhedouin <romain.hedouin@epitech.eu>
diff --git a/libavcodec/evc_ps.c b/libavcodec/evc_ps.c
index 637572d324..d7baed6790 100644
--- a/libavcodec/evc_ps.c
+++ b/libavcodec/evc_ps.c
@@ -70,7 +70,7 @@ static int hrd_parameters(GetBitContext *gb, HRDParameters *hrd)
}
hrd->initial_cpb_removal_delay_length_minus1 = get_bits(gb, 5);
hrd->cpb_removal_delay_length_minus1 = get_bits(gb, 5);
- hrd->cpb_removal_delay_length_minus1 = get_bits(gb, 5);
+ hrd->dpb_output_delay_length_minus1 = get_bits(gb, 5);
hrd->time_offset_length = get_bits(gb, 5);
return 0;