[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.32,1.33

Alex Beregszaszi alex at mplayerhq.hu
Tue Apr 8 18:23:40 CEST 2003


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv5079

Modified Files:
	mach64_vid.c 
Log Message:
fix i420 handling, bug found by rgselk at IRC <rgselknospam at yahoo.com>

Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- mach64_vid.c	31 Mar 2003 00:14:35 -0000	1.32
+++ mach64_vid.c	8 Apr 2003 16:23:09 -0000	1.33
@@ -791,10 +791,6 @@
 	config->offset.y= 0;
 	config->offset.u= (pitch*src_h + 15)&~15; 
 	config->offset.v= (config->offset.u + (pitch*src_h>>2) + 15)&~15;
-	
-	src_offset_y= config->offset.y + top*pitch + left;
-	src_offset_u= config->offset.u + (top*pitch>>2) + (left>>1);
-	src_offset_v= config->offset.v + (top*pitch>>2) + (left>>1);
 
 	if(besr.fourcc == IMGFMT_I420 || besr.fourcc == IMGFMT_IYUV)
 	{
@@ -803,6 +799,10 @@
 	  config->offset.u = config->offset.v;
 	  config->offset.v = tmp;
 	}
+		
+	src_offset_y= config->offset.y + top*pitch + left;
+	src_offset_u= config->offset.u + (top*pitch>>2) + (left>>1);
+	src_offset_v= config->offset.v + (top*pitch>>2) + (left>>1);
     }
     else if(besr.fourcc == IMGFMT_YVU9)
     {



More information about the MPlayer-cvslog mailing list