Commit b612c039 authored by michael's avatar michael

unscaled memcpy variant bugfix (negative strides)


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@4650 b3059339-0415-0410-9bf9-f77b7e298cf2
parent fd1c9622
......@@ -1297,8 +1297,8 @@ static void simpleCopy(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[],
int length=0;
/* universal length finder */
while(length+c->srcW <= dstStride[0]
&& length+c->srcW <= srcStride[0]) length+= c->srcW;
while(length+c->srcW <= ABS(dstStride[0])
&& length+c->srcW <= ABS(srcStride[0])) length+= c->srcW;
ASSERT(length!=0);
for(i=0; i<srcSliceH; i++)
......
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