changeset 4947:2cc47599b571

workaround for Lara Croft CVID sample... - one more problem to solve
author arpi
date Wed, 06 Mar 2002 15:00:38 +0000
parents a55d56509a2c
children 869e5bff8dab
files libvo/vo_mga.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_mga.c	Wed Mar 06 14:29:27 2002 +0000
+++ b/libvo/vo_mga.c	Wed Mar 06 15:00:38 2002 +0000
@@ -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: