fft-test: format error output more readably
Originally committed as revision 24799 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
51291e6005
commit
ead7ef8251
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ static int check_diff(float *tab1, float *tab2, int n, double scale)
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
double e= fabsf(tab1[i] - (tab2[i] / scale));
|
double e= fabsf(tab1[i] - (tab2[i] / scale));
|
||||||
if (e >= 1e-3) {
|
if (e >= 1e-3) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "ERROR %d: %f %f\n",
|
av_log(NULL, AV_LOG_ERROR, "ERROR %5d: %10.6f %10.6f\n",
|
||||||
i, tab1[i], tab2[i]);
|
i, tab1[i], tab2[i]);
|
||||||
err = 1;
|
err = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue