diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-10 23:57:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-10 23:57:47 +0000 |
commit | 9bd8bd1add6be33f5eb7f2645350901ab2a56a6c (patch) | |
tree | f1e7018a22769b9621e8bbaf9d964fda09763a1a /postproc | |
parent | e03c341ef3d755c9779b39fe0851c58343c12906 (diff) | |
download | ffmpeg-9bd8bd1add6be33f5eb7f2645350901ab2a56a6c.tar.gz |
unscaled memcpy variant bugfix (negative strides)
Originally committed as revision 4650 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
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++) |