1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

unscaled memcpy variant bugfix (negative strides)

Originally committed as revision 4650 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
Michael Niedermayer 2002-02-10 23:57:47 +00:00
parent e03c341ef3
commit 9bd8bd1add

View File

@ -1297,8 +1297,8 @@ static void simpleCopy(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[],
int length=0; int length=0;
/* universal length finder */ /* universal length finder */
while(length+c->srcW <= dstStride[0] while(length+c->srcW <= ABS(dstStride[0])
&& length+c->srcW <= srcStride[0]) length+= c->srcW; && length+c->srcW <= ABS(srcStride[0])) length+= c->srcW;
ASSERT(length!=0); ASSERT(length!=0);
for(i=0; i<srcSliceH; i++) for(i=0; i<srcSliceH; i++)