[FFmpeg-cvslog] avfilter/af_headphone: properly initialize scale

Paul B Mahol git at videolan.org
Mon Dec 19 19:41:55 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 19 18:44:49 2022 +0100| [744100af627adc102a87081b58e3dfdb933c12ec] | committer: Paul B Mahol

avfilter/af_headphone: properly initialize scale

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=744100af627adc102a87081b58e3dfdb933c12ec
---

 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)



More information about the ffmpeg-cvslog mailing list