mirror of https://git.ffmpeg.org/ffmpeg.git
fft-test: fix order of operations for calculating the average error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
857797bc14
commit
29619f47c1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue