[FFmpeg-cvslog] avcodec/dct-test: Print failure notice below the failed *dct
Michael Niedermayer
git at videolan.org
Tue Oct 13 17:03:28 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct 12 23:40:34 2015 +0200| [a745d1a9e4c426b847ed17cfb85764e60c1c10b0] | committer: Michael Niedermayer
avcodec/dct-test: Print failure notice below the failed *dct
This makes it easier to see where a failure happens
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a745d1a9e4c426b847ed17cfb85764e60c1c10b0
---
libavcodec/dct-test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 56e1a62..692c959 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -245,8 +245,10 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c
omse, ome, (double) sysErrMax / NB_ITS,
maxout, blockSumErrMax);
- if (spec_err && !dct->nonspec)
+ if (spec_err && !dct->nonspec) {
+ printf("Failed!\n");
return 1;
+ }
if (!speed)
return 0;
More information about the ffmpeg-cvslog
mailing list