From b696a4c91d5f2b30310eb762beeb225292d94b44 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 25 Aug 2007 19:04:33 +0000 Subject: [PATCH] avoid an overflow in the 1 horizontal lifting step Originally committed as revision 10225 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/i386/snowdsp_mmx.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavcodec/i386/snowdsp_mmx.c b/libavcodec/i386/snowdsp_mmx.c index 4fad6f81eb..6deaad2336 100644 --- a/libavcodec/i386/snowdsp_mmx.c +++ b/libavcodec/i386/snowdsp_mmx.c @@ -43,7 +43,7 @@ void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){ asm volatile( "pcmpeqd %%xmm7, %%xmm7 \n\t" "psllw $15, %%xmm7 \n\t" - "psrlw $13, %%xmm7 \n\t" + "psrlw $14, %%xmm7 \n\t" ::); for(; i> W_BS); asm volatile( - "psllw $1, %%mm7 \n\t" + "psllw $2, %%mm7 \n\t" ::); for(; i