Commit a61845d5cc for ffmpeg

commit a61845d5cc4c470c84fd3a85e2354c9c0d8f57b9
Author: Wu Jianhua <toqsxw@outlook.com>
Date:   Fri May 30 02:20:36 2025 +0800

    avcodec/vvc/inter_template: fix apply_prof_uni_w function for high bitdepth

    Signed-off-by: Wu Jianhua <toqsxw@outlook.com>

diff --git a/libavcodec/vvc/inter_template.c b/libavcodec/vvc/inter_template.c
index 44656c7ed9..9a2f814040 100644
--- a/libavcodec/vvc/inter_template.c
+++ b/libavcodec/vvc/inter_template.c
@@ -370,17 +370,18 @@ static void FUNC(apply_prof_uni)(uint8_t *_dst, const ptrdiff_t _dst_stride, con
 }

 static void FUNC(apply_prof_uni_w)(uint8_t *_dst, const ptrdiff_t _dst_stride,
-    const int16_t *src, const int16_t *diff_mv_x, const int16_t *diff_mv_y,
+    const int16_t *_src, const int16_t *diff_mv_x, const int16_t *diff_mv_y,
     const int denom, const int wx, const int _ox)
 {
     const int limit             = (1 << FFMAX(13, BIT_DEPTH + 1));          ///< dILimit
+    const tpixel *src           = (const tpixel *)_src;
     pixel *dst                  = (pixel*)_dst;
     const ptrdiff_t dst_stride  = _dst_stride / sizeof(pixel);
     const int shift             = denom + FFMAX(2, 14 - BIT_DEPTH);
     const int offset            = 1 << (shift - 1);
     const int ox                = _ox * (1 << (BIT_DEPTH - 8));
-    int16_t gradient_h[AFFINE_MIN_BLOCK_SIZE * AFFINE_MIN_BLOCK_SIZE];
-    int16_t gradient_v[AFFINE_MIN_BLOCK_SIZE * AFFINE_MIN_BLOCK_SIZE];
+    tpixel gradient_h[AFFINE_MIN_BLOCK_SIZE * AFFINE_MIN_BLOCK_SIZE];
+    tpixel gradient_v[AFFINE_MIN_BLOCK_SIZE * AFFINE_MIN_BLOCK_SIZE];

     FUNC(prof_grad_filter)(gradient_h, gradient_v, AFFINE_MIN_BLOCK_SIZE, src, MAX_PB_SIZE, AFFINE_MIN_BLOCK_SIZE, AFFINE_MIN_BLOCK_SIZE);