diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index b7c83cf800c1797d6c24bd70eb37dc2cf35923b6..83b5546f0826e98594a82776898889fb70fc79cd 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -193,7 +193,7 @@ static int check_diff(FFTSample *tab1, FFTSample *tab2, int n, double scale) double error = 0, max = 0; for (i = 0; i < n; i++) { - double e = fabsf(tab1[i] - (tab2[i] / scale)) / RANGE; + double e = fabs(tab1[i] - (tab2[i] / scale)) / RANGE; if (e >= 1e-3) { av_log(NULL, AV_LOG_ERROR, "ERROR %5d: "FMT" "FMT"\n", i, tab1[i], tab2[i]);