summaryrefslogtreecommitdiffstats
path: root/libavcodec/fft-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-30 19:30:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-30 20:10:07 +0200
commit29619f47c152db7390345ff9287e555ae501e277 (patch)
tree242388b827d155ac4c9cea75b674303dd30c898d /libavcodec/fft-test.c
parent857797bc1455468f9d70565ac087c3f57d8e67ff (diff)
downloadffmpeg-streaming-29619f47c152db7390345ff9287e555ae501e277.zip
ffmpeg-streaming-29619f47c152db7390345ff9287e555ae501e277.tar.gz
fft-test: fix order of operations for calculating the average error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r--libavcodec/fft-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 681e247..66474ce 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -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;
}
OpenPOWER on IntegriCloud