summaryrefslogtreecommitdiffstats
path: root/libavcodec/fft-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-12 23:11:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-12 23:12:06 +0200
commit2cbadf51e80a5b155c0e3444f0bd302096398139 (patch)
tree103599662c108564a82a992840fa0d2e88596e61 /libavcodec/fft-test.c
parentfd04082af985d4aa7a363a0cd9ee136c64d83820 (diff)
parent3b73d5c942f44b37f0e44276ebcfd66c8b12c02d (diff)
downloadffmpeg-streaming-2cbadf51e80a5b155c0e3444f0bd302096398139.zip
ffmpeg-streaming-2cbadf51e80a5b155c0e3444f0bd302096398139.tar.gz
Merge commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d'
* commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d': fft-test: Use the float fabs() version Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 ba26f81..7c3eea4 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -197,7 +197,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]);
OpenPOWER on IntegriCloud