From 0096836af0b79076f8aad496a162300ef18ec57c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 3 Oct 2022 10:49:47 +0200 Subject: [PATCH] filter-chain: guard against NULL convolver The convolver can be NULL when the IR has 0 length. --- src/modules/module-filter-chain/convolver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-filter-chain/convolver.c b/src/modules/module-filter-chain/convolver.c index dcf54d033..fff4fbe17 100644 --- a/src/modules/module-filter-chain/convolver.c +++ b/src/modules/module-filter-chain/convolver.c @@ -251,7 +251,7 @@ static int convolver1_run(struct convolver1 *conv, const float *input, float *ou { int i, processed = 0; - if (conv->segCount == 0) { + if (conv == NULL || conv->segCount == 0) { fft_clear(output, len); return len; }