# HG changeset patch # User arpi # Date 1017003306 0 # Node ID 207c13e15ffcc8697f6d27270db23bbcdfe844fc # Parent 80fbb03b385a37b6dc6d426f7a4d273496cfc400 U,V plane odrer fixed diff -r 80fbb03b385a -r 207c13e15ffc libvo/vo_mga.c --- a/libvo/vo_mga.c Sun Mar 24 20:45:30 2002 +0000 +++ b/libvo/vo_mga.c Sun Mar 24 20:55:06 2002 +0000 @@ -103,15 +103,12 @@ 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; + mga_vid_config.format=MGA_VID_FORMAT_I420; 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; + 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;