Commit 29619f47 authored by Michael Niedermayer's avatar Michael Niedermayer

fft-test: fix order of operations for calculating the average error

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 857797bc
......@@ -205,7 +205,7 @@ static int check_diff(FFTSample *tab1, FFTSample *tab2, int n, double scale)
error+= e*e;
if(e>max) max= e;
}
av_log(NULL, AV_LOG_INFO, "max:%f e:%g\n", max, sqrt(error)/n);
av_log(NULL, AV_LOG_INFO, "max:%f e:%g\n", max, sqrt(error/n));
return err;
}
......
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