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

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

commit ca6e0ee7aa12504fae1dd02717b92fcf8352cf24
Author:     Gil Portnoy <[email protected]>
AuthorDate: Wed Mar 11 04:39:06 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Mar 15 00:49:57 2026 +0100

    avcodec/cbs_h266_syntax_template: Fix w/h typo
    
    Fixes: out of array access
    Fixes: vvc_poc_subpic_wh_bug.h266
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 26dd9f9b5610b2c0313166c53d3964cde13db119)
    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 f2003d8bac..b411382aa7 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -1216,7 +1216,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, 
RWContext *rw,
                     int num_subpic_cols = tmp_width_val /
                                      (current->sps_subpic_width_minus1[0] + 1);
                     if (tmp_width_val % (current->sps_subpic_width_minus1[0] + 
1) ||
-                        tmp_height_val % (current->sps_subpic_width_minus1[0] 
+ 1) ||
+                        tmp_height_val % (current->sps_subpic_height_minus1[0] 
+ 1) ||
                         current->sps_num_subpics_minus1 !=
                         (num_subpic_cols * tmp_height_val /
                          (current->sps_subpic_height_minus1[0] + 1) - 1))

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

Reply via email to