Commit 7ce1d0a1b9 for ffmpeg

commit 7ce1d0a1b9344046543a8ed8fc53cb262b55db71
Author: Frank Plowman <post@frankplowman.com>
Date:   Sat Oct 31 15:15:22 2026 +0000

    lavc/vvc: Fix shift derivation in put_uni_w_scaled

    Should match the non-RPR version in put_uni_w_pixels

    Signed-off-by: Frank Plowman <post@frankplowman.com>

diff --git a/libavcodec/vvc/inter_template.c b/libavcodec/vvc/inter_template.c
index e06eab5ffa..f78a394644 100644
--- a/libavcodec/vvc/inter_template.c
+++ b/libavcodec/vvc/inter_template.c
@@ -123,7 +123,7 @@ static void av_always_inline FUNC(put_uni_w_scaled)(uint8_t *_dst, const ptrdiff
     pixel *dst                   = (pixel*)_dst;
     const ptrdiff_t dst_stride   = _dst_stride / sizeof(pixel);
     const ptrdiff_t src_stride   = _src_stride / sizeof(pixel);
-    const int shift              = FFMAX(2, 14 - BIT_DEPTH);
+    const int shift              = denom + FFMAX(2, 14 - BIT_DEPTH);
     const int offset             = 1 << (shift - 1);
     const int ox                 = _ox * (1 << (BIT_DEPTH - 8));
     const int taps               = is_chroma ? VVC_INTER_CHROMA_TAPS : VVC_INTER_LUMA_TAPS;