summaryrefslogtreecommitdiff
path: root/libavcodec/vp3dsp.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-05-28 07:22:04 +0000
committerDavid Conrad <lessen42@gmail.com>2010-05-28 07:22:04 +0000
commitc0fda017d1087903ade3b574bd57d02b63bfe2cc (patch)
tree2b7c1420c40c25d385593d0373e86668341fd09b /libavcodec/vp3dsp.c
parent179655b6c6f27cca2089844046bc5f280bb83814 (diff)
downloadffmpeg-c0fda017d1087903ade3b574bd57d02b63bfe2cc.tar.gz
vp3: 10l Fix DC-only IDCT for C and ARM too
Originally committed as revision 23359 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3dsp.c')
-rw-r--r--libavcodec/vp3dsp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vp3dsp.c b/libavcodec/vp3dsp.c
index 058eb562c4..b7cff788ea 100644
--- a/libavcodec/vp3dsp.c
+++ b/libavcodec/vp3dsp.c
@@ -225,9 +225,7 @@ void ff_vp3_idct_add_c(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*
void ff_vp3_idct_dc_add_c(uint8_t *dest/*align 8*/, int line_size, const DCTELEM *block/*align 16*/){
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
- int i, dc = block[0];
- dc = (46341*dc)>>16;
- dc = (46341*dc + (8<<16))>>20;
+ int i, dc = (block[0] + 15) >> 5;
for(i = 0; i < 8; i++){
dest[0] = cm[dest[0]+dc];