[FFmpeg-cvslog] avcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCT

Michael Niedermayer git at videolan.org
Sun Jan 12 00:29:34 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 12 00:17:49 2014 +0100| [65801040c648bbe352ad48ced2045bbeb25e9fcf] | committer: Michael Niedermayer

avcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCT

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65801040c648bbe352ad48ced2045bbeb25e9fcf
---

 libavcodec/dct-test.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 8800360..dc439c6 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -284,6 +284,9 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c
         }
 
         ref(block1);
+        if (!strcmp(dct->name, "PR-SSE2"))
+            for (i = 0; i < 64; i++)
+                block1[i] = av_clip(block1[i], 4-512, 1019-512);
 
         blockSumErr = 0;
         for (i = 0; i < 64; i++) {



More information about the ffmpeg-cvslog mailing list