mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-16 07:32:34 +03:00
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
This commit is contained in:
1 parent
cd823ff950
commit
c662e788ce
1 file changed
+1
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user