aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Schieli <cschieli@gmail.com>2009-03-11 14:22:53 +0000
committerCédric Schieli <cschieli@gmail.com>2009-03-11 14:22:53 +0000
commitc662e788ce9eb02f14a689bda2865ac6b46274ca (patch)
treeb36fc59b5768b85e47b02fe8e6d00ffa16fa4ce2
parentcd823ff950cf81d54965eceedb64569fee79ab36 (diff)
downloadffmpeg-c662e788ce9eb02f14a689bda2865ac6b46274ca.tar.gz
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
Originally committed as revision 28933 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
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 */