]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCT
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 23:17:49 +0000 (00:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 23:21:07 +0000 (00:21 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dct-test.c

index 88003606472f71cf5146918776b89ebb4141aa1b..dc439c619519eff5e2a3c09fa602cddbb6a129af 100644 (file)
@@ -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++) {