Commit edb9e65d1e for ffmpeg

commit edb9e65d1e795099b800029eeb91f45c5343bce6
Author: Wu Jianhua <toqsxw@outlook.com>
Date:   Sun Sep 6 11:20:51 2026 +0800

    avcodec/vvc/ctu: fix palette escape scaling overflow

    Reported-by: Frank Plowman <post@frankplowman.com>
    Signed-off-by: Wu Jianhua <toqsxw@outlook.com>

diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c
index a5952fc231..c681ccf559 100644
--- a/libavcodec/vvc/ctu.c
+++ b/libavcodec/vvc/ctu.c
@@ -2072,7 +2072,8 @@ static int palette_subblock_data(VVCLocalContext *lc,
                     const int coeff = ff_vvc_palette_escape_val(lc, (1 << sps->bit_depth) - 1);
                     if (coeff < 0)
                         return AVERROR_INVALIDDATA;
-                    const int pixel = av_clip_intp2(RSHIFT(coeff * scale, 6), sps->bit_depth);
+                    const int pixel = av_clip64(RSHIFT((int64_t) coeff * scale, 6), 0,
+                                                (1LL << sps->bit_depth) - 1);
                     PALETTE_SET_PIXEL(xc, yc, pixel);
                 } else {
                     PALETTE_SET_PIXEL(xc, yc, plt->entries[v]);