# HG changeset patch # User arpi # Date 1015426838 0 # Node ID 2cc47599b571b30acf4d3247b18ea80588d8376e # Parent a55d56509a2cdca95d59412518ef247afef47f24 workaround for Lara Croft CVID sample... - one more problem to solve diff -r a55d56509a2c -r 2cc47599b571 libvo/vo_mga.c --- 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: