diff libvo/gl_common.c @ 33606:959708d3e6f5

Second GL_YCBCR_MESA format is YVYU, not YUY2.
author reimar
date Tue, 21 Jun 2011 19:44:24 +0000
parents 9b1c1b141f04
children 08a90b0e44e1
line wrap: on
line diff
--- a/libvo/gl_common.c	Tue Jun 21 19:34:00 2011 +0000
+++ b/libvo/gl_common.c	Tue Jun 21 19:44:24 2011 +0000
@@ -296,7 +296,9 @@
       *gl_type = GL_UNSIGNED_BYTE;
       break;
     case IMGFMT_UYVY:
-    case IMGFMT_YUY2:
+    // IMGFMT_YUY2 would be more logical for the _REV format,
+    // but gives clearly swapped colors.
+    case IMGFMT_YVYU:
       *gl_texfmt = GL_YCBCR_MESA;
       *bpp = 16;
       *gl_format = GL_YCBCR_MESA;