summaryrefslogtreecommitdiff
path: root/libavcodec/simple_idct_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-12 02:14:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-14 15:58:59 +0100
commita7ea733b721e034447e4e5bb013e2dd25614f530 (patch)
treee6caf1ae6f15b1e5bee7b4b6c93d4f6fb78a8fbb /libavcodec/simple_idct_template.c
parentcca2772e168990616615745e783df5b2c2d75a40 (diff)
downloadffmpeg-a7ea733b721e034447e4e5bb013e2dd25614f530.tar.gz
avcodec/simple_idct_template: fix row rounder
MSE changes from 0.04890000 to 0.02969844 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/simple_idct_template.c')
-rw-r--r--libavcodec/simple_idct_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/simple_idct_template.c b/libavcodec/simple_idct_template.c
index 559b6e46db..838cea4951 100644
--- a/libavcodec/simple_idct_template.c
+++ b/libavcodec/simple_idct_template.c
@@ -136,7 +136,7 @@ static inline void FUNC(idctRowCondDC)(int16_t *row, int extra_shift)
}
#endif
- a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));
+ a0 = (W4 * row[0]) + (1 << (ROW_SHIFT + extra_shift - 1));
a1 = a0;
a2 = a0;
a3 = a0;