[FFmpeg-cvslog] avfilter/af_afftdn: move i initialization to silence warning
Paul B Mahol
git at videolan.org
Sat Sep 11 23:21:05 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep 11 21:59:24 2021 +0200| [533ddd61e5f162863162b6ead6d44acd70bcd5ad] | committer: Paul B Mahol
avfilter/af_afftdn: move i initialization to silence warning
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=533ddd61e5f162863162b6ead6d44acd70bcd5ad
---
libavfilter/af_afftdn.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c
index aa0dd7ce6c..5e9cefcfc1 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -1033,13 +1033,12 @@ static void set_noise_profile(AudioFFTDeNoiseContext *s,
double temp[15];
double sum = 0.0, d1;
float new_noise_floor;
- int i, n;
+ int i = 0, n;
for (int m = 0; m < 15; m++)
temp[m] = sample_noise[m];
if (new_profile) {
- i = 0;
for (int m = 0; m < 5; m++) {
sum = 0.0;
for (n = 0; n < 15; n++)
More information about the ffmpeg-cvslog
mailing list