mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
unscaled memcpy variant bugfix (negative strides)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4650 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2ca605c43c
commit
7af0988886
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user