This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit da82a784f66cf969f66e792623cb7f960e6ef151
Author:     Niklas Haas <[email protected]>
AuthorDate: Wed Nov 4 19:19:05 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Nov 8 01:48:12 2026 +0000

    swscale/filters: use ff_refstruct_calloc()
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/filters.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libswscale/filters.c b/libswscale/filters.c
index f735c91639..ddc4db8770 100644
--- a/libswscale/filters.c
+++ b/libswscale/filters.c
@@ -26,6 +26,7 @@
 #include <libavutil/mem.h>
 
 #include "filters.h"
+#include "swscale_internal.h"
 
 #ifdef _WIN32
 #  define j1 _j1
@@ -284,13 +285,13 @@ int ff_sws_filter_generate(void *log, const 
SwsFilterParams *params,
     filter->num_weights = (size_t) params->dst_size * filter->filter_size;
     const size_t padded = filter->num_weights +
                           (size_t) filter->filter_size * SWS_FILTER_PAD_ROWS;
-    filter->weights = av_refstruct_allocz(padded * sizeof(*filter->weights));
+    filter->weights = ff_refstruct_calloc(padded, sizeof(*filter->weights));
     if (!filter->weights) {
         av_refstruct_unref(&filter);
         return AVERROR(ENOMEM);
     }
 
-    filter->offsets = av_refstruct_allocz(params->dst_size * 
sizeof(*filter->offsets));
+    filter->offsets = ff_refstruct_calloc(params->dst_size, 
sizeof(*filter->offsets));
     if (!filter->offsets) {
         av_refstruct_unref(&filter);
         return AVERROR(ENOMEM);

-- 
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]

Reply via email to