git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d5176f
)
fft-test: Use the float fabs() version
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 12 Jun 2015 16:04:20 +0000
(17:04 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 12 Jun 2015 16:15:18 +0000
(17:15 +0100)
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]".
libavcodec/fft-test.c
patch
|
blob
|
history
diff --git
a/libavcodec/fft-test.c
b/libavcodec/fft-test.c
index
b7c83cf
..
83b5546
100644
(file)
--- 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 = fabs
f
(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]);