diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-11 21:59:24 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-11 22:19:25 +0200 |
commit | 533ddd61e5f162863162b6ead6d44acd70bcd5ad (patch) | |
tree | 108295e77e001bd21da1ba29e9a90a107adc3fc6 /libavfilter | |
parent | b53f9c5e6891b1f04ca08fc3f8a76ca11a3594b9 (diff) | |
download | ffmpeg-533ddd61e5f162863162b6ead6d44acd70bcd5ad.tar.gz |
avfilter/af_afftdn: move i initialization to silence warning
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_afftdn.c | 3 |
1 files changed, 1 insertions, 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++) |