[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.51,1.52

Michael Niedermayer michael at mplayerhq.hu
Sun Jun 30 21:04:11 CEST 2002


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

Modified Files:
	rgb2rgb.c 
Log Message:
fixing rgb24tobgr32


Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- rgb2rgb.c	29 Jun 2002 21:26:15 -0000	1.51
+++ rgb2rgb.c	30 Jun 2002 19:04:02 -0000	1.52
@@ -446,8 +446,7 @@
 void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
 {
 	unsigned i;
-	unsigned num_pixels = src_size >> 2;
-	for(i=0; i<num_pixels; i++)
+	for(i=0; 3*i<src_size; i++)
 	{
 		dst[4*i + 0] = src[3*i + 2];
 		dst[4*i + 1] = src[3*i + 1];




More information about the MPlayer-cvslog mailing list