[FFmpeg-devel] [PATCH 01/22] avfilter/af_aecho: Remove use of av_uninit

Zhao Zhili quinkblack at foxmail.com
Fri Apr 11 10:57:39 EEST 2025


From: Zhao Zhili <zhilizhao at tencent.com>

---
 libavfilter/af_aecho.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c
index ff316eaa67..4406e0dbb2 100644
--- a/libavfilter/af_aecho.c
+++ b/libavfilter/af_aecho.c
@@ -164,7 +164,7 @@ static void echo_samples_## name ##p(AudioEchoContext *ctx,                 \
     const double in_gain = ctx->in_gain;                                    \
     const int nb_echoes = ctx->nb_echoes;                                   \
     const int max_samples = ctx->max_samples;                               \
-    int i, j, chan, av_uninit(index);                                       \
+    int i, j, chan, index = 0;                                              \
                                                                             \
     av_assert1(channels > 0); /* would corrupt delay_index */               \
                                                                             \
-- 
2.46.0



More information about the ffmpeg-devel mailing list