From 7fee9f0101e0a196495a4980d78a4b09bd8f073c Mon Sep 17 00:00:00 2001 From: sdrik Date: Wed, 11 Mar 2009 14:22:53 +0000 Subject: In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos element is initialized on the wrong index (not evenly aligned). This fixes it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28933 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswscale') diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 1307a5076b..c6012c15b7 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1622,7 +1622,7 @@ static void initMMX2HScaler(int dstW, int xInc, uint8_t *funnyCode, int16_t *fil } xpos+=xInc; } - filterPos[i/2]= xpos>>16; // needed to jump to the next part + filterPos[((i/2)+1)&(~1)]= xpos>>16; // needed to jump to the next part } #endif /* COMPILE_MMX2 */ -- cgit v1.2.3