changeset 5318:207c13e15ffc

U,V plane odrer fixed
author arpi
date Sun, 24 Mar 2002 20:55:06 +0000
parents 80fbb03b385a
children 83e6e16e9670
files libvo/vo_mga.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;