This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit edb9e65d1e795099b800029eeb91f45c5343bce6 Author: Wu Jianhua <[email protected]> AuthorDate: Sun Sep 6 11:20:51 2026 +0800 Commit: jianhuaw <[email protected]> CommitDate: Sun Nov 29 10:42:10 2026 +0000 avcodec/vvc/ctu: fix palette escape scaling overflow Reported-by: Frank Plowman <[email protected]> Signed-off-by: Wu Jianhua <[email protected]> --- libavcodec/vvc/ctu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- 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]
