[Mplayer-cvslog] CVS: main/postproc postprocess_template.c,1.68,1.69

Michael Niedermayer CVS michael at mplayerhq.hu
Mon Dec 30 00:32:08 CET 2002


Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv3763

Modified Files:
	postprocess_template.c 
Log Message:
cleaning corners of green dirt ;)


Index: postprocess_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess_template.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- postprocess_template.c	23 Nov 2002 10:58:05 -0000	1.68
+++ postprocess_template.c	29 Dec 2002 23:31:52 -0000	1.69
@@ -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<copyAhead; i++)
+			{
+				memcpy(dst + i*dstStride, tempDst + (9+i)*dstStride, width);
+			}
+		}
 	}
 
 //printf("\n");
@@ -3050,7 +3058,15 @@
 		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)




More information about the MPlayer-cvslog mailing list