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/x86 | |
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/x86')
-rw-r--r-- | src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/x86/vp3dsp_mmx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/x86/vp3dsp_mmx.c b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/x86/vp3dsp_mmx.c index 92985921e..89ecc7406 100644 --- a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/x86/vp3dsp_mmx.c +++ b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/x86/vp3dsp_mmx.c @@ -19,7 +19,7 @@ */
/**
- * @file
+ * @file libavcodec/x86/vp3dsp_mmx.c
* MMX-optimized functions cribbed from the original VP3 source code.
*/
@@ -398,7 +398,9 @@ void ff_vp3_idct_add_mmx(uint8_t *dest, int line_size, DCTELEM *block) void ff_vp3_idct_dc_add_mmx2(uint8_t *dest, int linesize, const DCTELEM *block)
{
- int dc = (block[0] + 15) >> 5;
+ int dc = block[0];
+ dc = (46341*dc)>>16;
+ dc = (46341*dc + (8<<16))>>20;
__asm__ volatile(
"movd %3, %%mm0 \n\t"
|