filter-chain: guard against NULL convolver

The convolver can be NULL when the IR has 0 length.
This commit is contained in:
Wim Taymans 2022-10-03 10:49:47 +02:00
parent 16b7ab29c1
commit 0096836af0

View file

@ -251,7 +251,7 @@ static int convolver1_run(struct convolver1 *conv, const float *input, float *ou
{ {
int i, processed = 0; int i, processed = 0;
if (conv->segCount == 0) { if (conv == NULL || conv->segCount == 0) {
fft_clear(output, len); fft_clear(output, len);
return len; return len;
} }