Mercurial > mplayer.hg
changeset 28898:0ee63ee71db3
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.
author | sdrik |
---|---|
date | Wed, 11 Mar 2009 14:22:53 +0000 |
parents | ab528b965f1c |
children | 58ed7753cee9 |
files | libswscale/swscale.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Wed Mar 11 00:25:23 2009 +0000 +++ b/libswscale/swscale.c Wed Mar 11 14:22:53 2009 +0000 @@ -1622,7 +1622,7 @@ } 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 */