[Mplayer-cvslog] CVS: main/postproc swscale.c,1.135,1.136

Michael Niedermayer CVS michael at mplayerhq.hu
Fri Nov 7 00:22:56 CET 2003


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

Modified Files:
	swscale.c 
Log Message:
1000l


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- swscale.c	4 Nov 2003 13:52:12 -0000	1.135
+++ swscale.c	6 Nov 2003 23:22:17 -0000	1.136
@@ -2119,7 +2119,10 @@
  */
 int sws_scale_ordered(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
                            int srcSliceH, uint8_t* dst[], int dstStride[]){
-	return c->swScale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride);
+	//copy strides, so they can safely be modified
+	int srcStride2[3]= {srcStride[0], srcStride[1], srcStride[2]};
+	int dstStride2[3]= {dstStride[0], dstStride[1], dstStride[2]};
+	return c->swScale(c, src, srcStride2, srcSliceY, srcSliceH, dst, dstStride2);
 }
 
 /**



More information about the MPlayer-cvslog mailing list