[FFmpeg-cvslog] avcodec/dct-test: correct output bias of 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> | Sat Jan 11 23:57:47 2014 +0100| [2981f6a79faca831fde6b80d32c72e3b42d4bfac] | committer: Michael Niedermayer

avcodec/dct-test: correct output bias of prores idct

This way the output values make sense

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

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

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

diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 547ea02..8800360 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -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
 



More information about the ffmpeg-cvslog mailing list