[Mplayer-cvslog] CVS: main/postproc swscale.c,1.80,1.81

Michael Niedermayer michael at mplayer.dev.hu
Mon Feb 11 00:57:50 CET 2002


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

Modified Files:
	swscale.c 
Log Message:
unscaled memcpy variant bugfix (negative strides)


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- swscale.c	10 Feb 2002 00:43:31 -0000	1.80
+++ swscale.c	10 Feb 2002 23:57:47 -0000	1.81
@@ -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++)




More information about the MPlayer-cvslog mailing list