This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.0
in repository ffmpeg.

commit 7da24bc271f359bef8d19eb5d2275ce9ebebfbef
Author:     James Almer <[email protected]>
AuthorDate: Thu May 21 00:00:00 2026 +0000
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:59:06 2026 +0200

    avcodec/cbs_h266_syntax_template: Fix pps_exp_slice_height_in_ctus_minus1 
range
    
    Found-by: Claude (Anthropic). Human-verified and reported by Omkhar 
Arasaratnam <[email protected]>.
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit bf608f16fd6772b1977a2637e8ab49644f6b5eb5)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/cbs_h266_syntax_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_h266_syntax_template.c 
b/libavcodec/cbs_h266_syntax_template.c
index 4c6a22dde0..d66d07cedd 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -2022,7 +2022,7 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, 
RWContext *rw,
                         for (j = 0; j < current->pps_num_exp_slices_in_tile[i];
                              j++) {
                             ues(pps_exp_slice_height_in_ctus_minus1[i][j], 0,
-                                remaining_height_in_ctbs_y - 1, 2,
+                                remaining_height_in_ctbs_y - 
(current->pps_num_exp_slices_in_tile[i] - j), 2,
                                 i, j);
                             slice_height_in_ctus =
                                 current->

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to