mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: fix arguments of calloc
This commit is contained in:
parent
e757868cf9
commit
3958eb5962
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue