[Mplayer-cvslog] CVS: main/libvo vo_mga.c,1.25,1.26

Arpi of Ize arpi at mplayer.dev.hu
Wed Mar 6 16:00:41 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv23227

Modified Files:
	vo_mga.c 
Log Message:
workaround for Lara Croft CVID sample... - one more problem to solve

Index: vo_mga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_mga.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- vo_mga.c	9 Feb 2002 01:21:48 -0000	1.25
+++ vo_mga.c	6 Mar 2002 15:00:38 -0000	1.26
@@ -101,12 +101,15 @@
 
         switch(format){
         case IMGFMT_YV12:
+	    width+=width&1;height+=height&1;
 	    mga_vid_config.frame_size = ((width + 31) & ~31) * height + (((width + 31) & ~31) * height) / 2;
             mga_vid_config.format=MGA_VID_FORMAT_YV12; break;
         case IMGFMT_I420:
+	    width+=width&1;height+=height&1;
 	    mga_vid_config.frame_size = ((width + 31) & ~31) * height + (((width + 31) & ~31) * height) / 2;
             mga_vid_config.format=MGA_VID_FORMAT_I420; break;
         case IMGFMT_IYUV:
+	    width+=width&1;height+=height&1;
 	    mga_vid_config.frame_size = ((width + 31) & ~31) * height + (((width + 31) & ~31) * height) / 2;
             mga_vid_config.format=MGA_VID_FORMAT_IYUV; break;
         case IMGFMT_YUY2:




More information about the MPlayer-cvslog mailing list