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

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

commit 83c2f4b81df7a2b860eab95c86495df9682f819f
Author:     Frank Plowman <[email protected]>
AuthorDate: Thu Nov 28 22:17:23 2024 +0000
Commit:     Frank Plowman <[email protected]>
CommitDate: Wed Jun 10 15:12:23 2026 +0100

    lavc/vvc: Use second definition of MinQtLog2SizeIntraC if relevant
    
    MinQtLog2SizeIntraC is usually (eq. (51) from VVCv3) defined as
    
    sps_log2_diff_min_qt_min_cb_intra_slice_chroma + MinCbLog2SizeY
    
    However, in the case ph_log2_diff_min_qt_min_cb_intra_slice_chroma is
    present, it is instead (eq. (83) from VVCv3) defined as
    
    ph_log2_diff_min_qt_min_cb_intra_slice_chroma + MinCbLog2SizeY
    
    When ph_log2_diff_max_bt_min_qt_intra_slice_chroma and
    ph_log2_diff_max_tt_min_qt_intra_slice_chroma are present, so is
    ph_log2_diff_min_qt_min_cb_intra_slice_chroma, and so we should use the
    second definition of MinQtLog2SizeIntraC, rather than the first, when
    calculating the bounds for these syntax elements.
    
    Signed-off-by: Frank Plowman <[email protected]>
    
    (cherry-picked from commit 9221cb0443ac27253f26646c5078478b6cf4bfce)
---
 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 fa2a6a6e3c..1ec3fe185b 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -2810,7 +2810,7 @@ static int FUNC(picture_header) (CodedBitstreamContext 
*ctx, RWContext *rw,
                    0, 2 * (ctb_log2_size_y - min_cb_log2_size_y));
                 if (current->ph_max_mtt_hierarchy_depth_intra_slice_chroma != 
0) {
                     unsigned int min_qt_log2_size_intra_c =
-                        sps->sps_log2_diff_min_qt_min_cb_intra_slice_chroma +
+                        current->ph_log2_diff_min_qt_min_cb_intra_slice_chroma 
+
                         min_cb_log2_size_y;
                     ue(ph_log2_diff_max_bt_min_qt_intra_slice_chroma,
                        0, FFMIN(6, ctb_log2_size_y) - 
min_qt_log2_size_intra_c);

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

Reply via email to