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

Git pushed a commit to branch master
in repository ffmpeg.

commit c877e20d7eff95da614ee4149c0209847c44befc
Author:     Wu Jianhua <[email protected]>
AuthorDate: Sun Sep 6 07:51:18 2026 +0800
Commit:     jianhuaw <[email protected]>
CommitDate: Sun Sep 6 20:55:01 2026 +0000

    avcodec/cbs_h266_syntax_template: fix ph_recovery_poc_cnt range
    
    Signed-off-by: Wu Jianhua <[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 92602ebf23..fa90aba1de 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -2689,7 +2689,7 @@ static int FUNC(picture_header) (CodedBitstreamContext 
*ctx, RWContext *rw,
     ub(sps->sps_log2_max_pic_order_cnt_lsb_minus4 + 4, ph_pic_order_cnt_lsb);
     if (current->ph_gdr_pic_flag)
         ue(ph_recovery_poc_cnt, 0,
-           1 << (sps->sps_log2_max_pic_order_cnt_lsb_minus4 + 4));
+           (1 << (sps->sps_log2_max_pic_order_cnt_lsb_minus4 + 4)) - 1);
 
     for (i = 0; i < sps->sps_num_extra_ph_bytes * 8; i++) {
         if (sps->sps_extra_ph_bit_present_flag[i])

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to