summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mga.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-06 15:00:38 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-06 15:00:38 +0000
commitdd800c1276a59cf677103ab2741e14b30bfcca19 (patch)
treeef94dd80c9e429b229c245d27353c110aef09fb0 /libvo/vo_mga.c
parent6f4d10cea764cadce36724c1fb846d4ee06d4455 (diff)
downloadmpv-dd800c1276a59cf677103ab2741e14b30bfcca19.tar.bz2
mpv-dd800c1276a59cf677103ab2741e14b30bfcca19.tar.xz
workaround for Lara Croft CVID sample... - one more problem to solve
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4948 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r--libvo/vo_mga.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
index df3fed068c..26a95b8aaf 100644
--- a/libvo/vo_mga.c
+++ b/libvo/vo_mga.c
@@ -101,12 +101,15 @@ char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
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: