mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-15 22:20:09 +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)
|
if (conv->fft_buffer == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
conv->segments = calloc(sizeof(float*), conv->segCount);
|
conv->segments = calloc(conv->segCount, sizeof(float*));
|
||||||
conv->segmentsIr = calloc(sizeof(float*), conv->segCount);
|
conv->segmentsIr = calloc(conv->segCount, sizeof(float*));
|
||||||
|
|
||||||
for (i = 0; i < conv->segCount; i++) {
|
for (i = 0; i < conv->segCount; i++) {
|
||||||
int left = irlen - (i * conv->blockSize);
|
int left = irlen - (i * conv->blockSize);
|
||||||
|
|
Loading…
Reference in a new issue