From 972ac850b11ada04531761ea9c8e8a7d3d0f0b17 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 28 Apr 2024 09:53:08 +0200 Subject: [PATCH] filter-chain: fix arguments of calloc --- src/modules/module-filter-chain/convolver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-filter-chain/convolver.c b/src/modules/module-filter-chain/convolver.c index 78579f845..1b3b27bad 100644 --- a/src/modules/module-filter-chain/convolver.c +++ b/src/modules/module-filter-chain/convolver.c @@ -123,8 +123,8 @@ static struct convolver1 *convolver1_new(int block, const float *ir, int irlen) if (conv->fft_buffer == NULL) goto error; - conv->segments = calloc(sizeof(float*), conv->segCount); - conv->segmentsIr = calloc(sizeof(float*), conv->segCount); + conv->segments = calloc(conv->segCount, sizeof(float*)); + conv->segmentsIr = calloc(conv->segCount, sizeof(float*)); for (i = 0; i < conv->segCount; i++) { int left = irlen - (i * conv->blockSize);