# HG changeset patch # User michael # Date 1041204712 0 # Node ID 1e4ab5fdfca1d72ca9570e21c3f3d3135b4833ee # Parent ef769ec241154850f2b42dc78f9e25c9c6111a86 cleaning corners of green dirt ;) diff -r ef769ec24115 -r 1e4ab5fdfca1 libpostproc/postprocess_template.c --- a/libpostproc/postprocess_template.c Sun Dec 29 22:35:46 2002 +0000 +++ b/libpostproc/postprocess_template.c Sun Dec 29 23:31:52 2002 +0000 @@ -2824,7 +2824,15 @@ 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