]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dct-test: correct output bias of prores idct
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 22:57:47 +0000 (23:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 22:57:47 +0000 (23:57 +0100)
This way the output values make sense

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dct-test.c

index 547ea02a219b6796596d1359b4f5466ab13f0c0b..88003606472f71cf5146918776b89ebb4141aa1b 100644 (file)
@@ -113,6 +113,10 @@ static void ff_prores_idct_put_10_sse2_wrap(int16_t *dst){
         tmp[i]= dst[i];
     }
     ff_prores_idct_put_10_sse2(dst, 16, tmp, qmat);
+
+    for(i=0; i<64; i++) {
+         dst[i] -= 512;
+    }
 }
 #endif