]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_arnndn: Remove superfluous qualifier
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 17 Oct 2019 09:24:55 +0000 (11:24 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 17 Oct 2019 10:30:24 +0000 (12:30 +0200)
remove_doubling() returned a const float, but returning qualified types
is pointless anyway. This is all the more important given that  GCC 4.2.1
(and maybe other compilers, too) seems to treat this as an error as several
FATE units that don't compile any more show.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_arnndn.c

index 7688b31b0c829b275269ba7129a8e6532c1f4c21..7a26f89709e61d53fd4f7c0cca0386fab3be8353 100644 (file)
@@ -782,8 +782,8 @@ static float compute_pitch_gain(float xy, float xx, float yy)
 }
 
 static const int second_check[16] = {0, 0, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2};
-static const float remove_doubling(float *x, int maxperiod, int minperiod,
-                                   int N, int *T0_, int prev_period, float prev_gain)
+static float remove_doubling(float *x, int maxperiod, int minperiod, int N,
+                             int *T0_, int prev_period, float prev_gain)
 {
     int k, i, T, T0;
     float g, g0;