Commit 2cbadf51 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3b73d5c9'

* commit '3b73d5c9':
  fft-test: Use the float fabs() version
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents fd04082a 3b73d5c9
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment