summaryrefslogtreecommitdiff
path: root/libavcodec/fft-test.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-06-12 17:04:20 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-06-12 17:15:18 +0100
commit3b73d5c942f44b37f0e44276ebcfd66c8b12c02d (patch)
treeba84d522cf83bb5137e1202bf89948087365d787 /libavcodec/fft-test.c
parent2d5176fad1a4556d209cbfb0f681712c7eada4fd (diff)
downloadffmpeg-3b73d5c942f44b37f0e44276ebcfd66c8b12c02d.tar.gz
fft-test: Use the float fabs() version
Fixes clang warning "absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]".
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r--libavcodec/fft-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index b7c83cf800..83b5546f08 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]);