summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-29 23:31:52 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-29 23:31:52 +0000
commit436741237f64abb483d1b99dc8e9b22ae9f6c2ea (patch)
tree81151fdb7453944879d52a5a4f071ba8ac6ceeee /postproc
parentec27ebf6b7ae96b7ba0897075cb0adfc63679587 (diff)
downloadmpv-436741237f64abb483d1b99dc8e9b22ae9f6c2ea.tar.bz2
mpv-436741237f64abb483d1b99dc8e9b22ae9f6c2ea.tar.xz
cleaning corners of green dirt ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8652 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r--postproc/postprocess_template.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c
index a75c9b4dc8..f35fbd0821 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<copyAhead; i++)
+ {
+ memcpy(dst + i*dstStride, tempDst + (9+i)*dstStride, width);
+ }
+ }
}
//printf("\n");
@@ -3050,7 +3058,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int
if(y+15 >= 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<height-y; i++)
+ {
+ memcpy(dstBlock + i*dstStride, tempDst + (i+1)*dstStride, width);
+ }
+ }
}
/*
for(x=0; x<width; x+=32)