Commit fab51fa4 authored by conrad's avatar conrad

vp3: The DC-only IDCT is surprisingly not supposed to be bitexact to the

full IDCT. Fix this.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23358 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b0275fe0
...@@ -398,9 +398,7 @@ void ff_vp3_idct_add_mmx(uint8_t *dest, int line_size, DCTELEM *block) ...@@ -398,9 +398,7 @@ 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) void ff_vp3_idct_dc_add_mmx2(uint8_t *dest, int linesize, const DCTELEM *block)
{ {
int dc = block[0]; int dc = (block[0] + 15) >> 5;
dc = (46341*dc)>>16;
dc = (46341*dc + (8<<16))>>20;
__asm__ volatile( __asm__ volatile(
"movd %3, %%mm0 \n\t" "movd %3, %%mm0 \n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment