From: Michael Niedermayer Date: Sun, 29 Dec 2002 23:31:52 +0000 (+0000) Subject: cleaning corners of green dirt ;) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3cef52271d329bfc75001971a72a10469e1ce49c;p=ffmpeg cleaning corners of green dirt ;) Originally committed as revision 8652 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c index a75c9b4dc89..f35fbd08215 100644 --- a/postproc/postprocess_template.c +++ b/postproc/postprocess_template.c @@ -2824,7 +2824,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int dstBlock+=8; srcBlock+=8; } - memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride ); + if(width==dstStride) + memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride); + else + { + for(i=0; i= height) { uint8_t *dstBlock= &(dst[y*dstStride]); - memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y) ); + if(width==dstStride) + memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y)); + else + { + for(i=0; i