diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 23:57:47 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 23:57:47 +0000 |
commit | 7af098888697e4082c749f6cd6f40e24c6aafb7a (patch) | |
tree | 0f2b931849cd25b2d9389d088e3076c2411b4ba5 /postproc | |
parent | 2ca605c43c205ff919d35ad96e7c33b812328721 (diff) | |
download | mpv-7af098888697e4082c749f6cd6f40e24c6aafb7a.tar.bz2 mpv-7af098888697e4082c749f6cd6f40e24c6aafb7a.tar.xz |
unscaled memcpy variant bugfix (negative strides)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4650 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/swscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index bfe39af4cf..4be341d9dc 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -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++) |