Mercurial > mplayer.hg
changeset 4649:e0661cd256fd
unscaled memcpy variant bugfix (negative strides)
author | michael |
---|---|
date | Sun, 10 Feb 2002 23:57:47 +0000 |
parents | 65f05c190b55 |
children | fbd2535a00c6 |
files | postproc/swscale.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/swscale.c Sun Feb 10 23:56:01 2002 +0000 +++ b/postproc/swscale.c Sun Feb 10 23:57:47 2002 +0000 @@ -1297,8 +1297,8 @@ 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++)