Commit 810459c0ba for ffmpeg

commit 810459c0ba9a61d0971c1e5a38817f99950ff284
Author: Niklas Haas <git@haasn.dev>
Date:   Sat Nov 7 13:40:27 2026 +0100

    swscale/uops: use ff_refstruct_calloc()

    Signed-off-by: Niklas Haas <git@haasn.dev>

diff --git a/libswscale/uops.c b/libswscale/uops.c
index 4f19ee33f0..a03c08ae43 100644
--- a/libswscale/uops.c
+++ b/libswscale/uops.c
@@ -30,6 +30,7 @@
 #include "ops.h"
 #include "uops.h"
 #include "uops_list.h"
+#include "swscale_internal.h"

 int ff_sws_uop_cmp(const SwsUOp *a, const SwsUOp *b)
 {
@@ -484,7 +485,7 @@ static int translate_dither_op(SwsUOpList *ops, SwsUOpFlags flags, const SwsOp *
      * typically 320 bytes for a 16x16 dither matrix. */
     const int stride   = size * sizeof(SwsPixel);
     const int num_rows = ff_sws_dither_height(&uop.par.dither);
-    SwsPixel *matrix = uop.data.ptr = av_refstruct_allocz(num_rows * stride);
+    SwsPixel *matrix = uop.data.ptr = ff_refstruct_calloc(num_rows, stride);
     if (!matrix)
         return AVERROR(ENOMEM);