summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-06-21 19:44:24 +0000
committerUoti Urpala <uau@mplayer2.org>2011-07-06 13:01:07 +0300
commit950003b0c376a4e5444f0449f719a19125725296 (patch)
tree801965b0e9c1e09dcfae3bb1889baea29aa8c2fd /libvo/gl_common.c
parentcedee1dc725f74752b7acd8224b5a05a4f306992 (diff)
downloadmpv-950003b0c376a4e5444f0449f719a19125725296.tar.bz2
mpv-950003b0c376a4e5444f0449f719a19125725296.tar.xz
vo_gl: fix YUY2/YVYU colorspace mixup
Second GL_YCBCR_MESA format is YVYU, not YUY2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33694 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index cee413d3b3..eb12d79a74 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -297,7 +297,9 @@ int glFindFormat(uint32_t fmt, int *bpp, GLint *gl_texfmt,
*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;