Commit 00ccd2d041 for ffmpeg

commit 00ccd2d0413986464936f1847b85cacbd420a6e4
Author: Wu Jianhua <toqsxw@outlook.com>
Date:   Tue Apr 15 04:43:01 2025 +0800

    avcodec/vvc/filter_template: fix alf_filter_chroma function for high bitdepth

    This commit fixed Coding tree block filtering process for chroma samples

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

diff --git a/libavcodec/vvc/filter_template.c b/libavcodec/vvc/filter_template.c
index 708232e083..3e455c37dd 100644
--- a/libavcodec/vvc/filter_template.c
+++ b/libavcodec/vvc/filter_template.c
@@ -136,13 +136,14 @@ static void FUNC(alf_filter_luma)(uint8_t *_dst, ptrdiff_t dst_stride, const uin
 }

 static void FUNC(alf_filter_chroma)(uint8_t* _dst, ptrdiff_t dst_stride, const uint8_t* _src, ptrdiff_t src_stride,
-    const int width, const int height, const int16_t* filter, const int16_t* clip, const int vb_pos)
+    const int width, const int height, const int16_t *filter, const int16_t *_clip, const int vb_pos)
 {
-    const pixel *src = (pixel *)_src;
-    const int shift  = 7;
-    const int offset = 1 << ( shift - 1 );
-    const int vb_above  = vb_pos - 2;
-    const int vb_below  = vb_pos + 1;
+    const pixel *src   = (pixel *)_src;
+    const tpixel *clip = (const tpixel *)_clip;
+    const int shift    = 7;
+    const int offset   = 1 << ( shift - 1 );
+    const int vb_above = vb_pos - 2;
+    const int vb_below = vb_pos + 1;

     dst_stride /= sizeof(pixel);
     src_stride /= sizeof(pixel);