diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-05-30 04:34:36 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-05-30 04:34:36 +0400 |
commit | f45f5edd860b6e1b8c5bf5ddc7c3993f651cad48 (patch) | |
tree | e176dbb9aef0b4a9c40fd7ab8fdf6f6d7dab6b19 /src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c | |
parent | dcb976ef233b7f929ab58b36eaf8e536f9e8dbfa (diff) |
revert r1987; it breaks dxva
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1989 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c')
-rw-r--r-- | src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c index 3633a52d6..09161a546 100644 --- a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c +++ b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/vp3dsp.c @@ -19,7 +19,7 @@ */
/**
- * @file
+ * @file libavcodec/vp3dsp.c
* Standard C DSP-oriented functions cribbed from the original VP3
* source code.
*/
@@ -225,7 +225,9 @@ 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] + 15) >> 5;
+ int i, dc = block[0];
+ dc = (46341*dc)>>16;
+ dc = (46341*dc + (8<<16))>>20;
for(i = 0; i < 8; i++){
dest[0] = cm[dest[0]+dc];
|