From 744100af627adc102a87081b58e3dfdb933c12ec Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 19 Dec 2022 18:44:49 +0100 Subject: [PATCH] avfilter/af_headphone: properly initialize scale --- libavfilter/af_headphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index 3d3adca8c8..005e151e2c 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -379,7 +379,7 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink) s->n_fft = n_fft = 1 << (32 - ff_clz(ir_len + s->size)); if (s->type == FREQUENCY_DOMAIN) { - float scale; + float scale = 1.f; ret = av_tx_init(&s->fft[0], &s->tx_fn[0], AV_TX_FLOAT_FFT, 0, s->n_fft, &scale, 0); if (ret < 0)