From 3d1bdd77181aef2668cbf83fc807c61aa66322b0 Mon Sep 17 00:00:00 2001 From: romainhedouin Date: Wed, 14 Oct 2026 21:07:19 +0200 Subject: [PATCH] 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 --- libavcodec/evc_ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;