mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
filter-chain: fix arguments of calloc
This commit is contained in:
parent
4706fc8a9b
commit
972ac850b1
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue