Commit 8597d0d1 authored by sdrik's avatar sdrik

In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos...

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: file:///var/local/repositories/mplayer/trunk/libswscale@28933 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 2338c58d
......@@ -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 */
......
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