[Mplayer-cvslog] CVS: main/libmpcodecs vf_rgb2bgr.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Sat Apr 13 16:24:35 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv12490

Modified Files:
	vf_rgb2bgr.c 
Log Message:
handle width*bpp!=stride

Index: vf_rgb2bgr.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_rgb2bgr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vf_rgb2bgr.c	13 Apr 2002 14:21:52 -0000	1.2
+++ vf_rgb2bgr.c	13 Apr 2002 14:24:33 -0000	1.3
@@ -52,7 +52,7 @@
 	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 	mpi->w, mpi->h);
 
-    if(mpi->stride[0]!=dmpi->stride[0]){
+    if(mpi->stride[0]!=dmpi->stride[0] || mpi->stride[0]!=mpi->w*(mpi->bpp/8)){
 	int y;
 	unsigned char* src=mpi->planes[0];
 	unsigned char* dst=dmpi->planes[0];




More information about the MPlayer-cvslog mailing list