summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mga.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-24 20:55:06 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-24 20:55:06 +0000
commitb0fce0464036f773b4f98e307d655510fc2c21b6 (patch)
tree22a5f8a150d650b3ce15694e9b786a40e0788142 /libvo/vo_mga.c
parente2cad38b0a76076b93c8186ab0522f0f3a1e691a (diff)
downloadmpv-b0fce0464036f773b4f98e307d655510fc2c21b6.tar.bz2
mpv-b0fce0464036f773b4f98e307d655510fc2c21b6.tar.xz
U,V plane odrer fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5319 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r--libvo/vo_mga.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
index 210cb525ad..9eaa6c5190 100644
--- a/libvo/vo_mga.c
+++ b/libvo/vo_mga.c
@@ -103,15 +103,12 @@ char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
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_I420:
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;
+ mga_vid_config.format=MGA_VID_FORMAT_YV12; break;
case IMGFMT_YUY2:
mga_vid_config.frame_size = ((width + 31) & ~31) * height * 2;
mga_vid_config.format=MGA_VID_FORMAT_YUY2; break;