From 2981f6a79faca831fde6b80d32c72e3b42d4bfac Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Jan 2014 23:57:47 +0100 Subject: [PATCH] avcodec/dct-test: correct output bias of prores idct This way the output values make sense Signed-off-by: Michael Niedermayer --- libavcodec/dct-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 547ea02a21..8800360647 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