Skip to content

Commit

Permalink
Merge commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d'
Browse files Browse the repository at this point in the history
* commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d':
  fft-test: Use the float fabs() version

Merged-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jun 12, 2015
2 parents fd04082 + 3b73d5c commit 2cbadf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/fft-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 2cbadf5

Please sign in to comment.