[MPlayer-cvslog] r19362 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Tue Aug 8 16:56:12 CEST 2006


Author: reimar
Date: Tue Aug  8 16:56:12 2006
New Revision: 19362

Modified:
   trunk/libvo/vo_gl.c

Log:
Disable Y800 colorspace support, otherwise mplayer uses it even when it's not supposed to.


Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Tue Aug  8 16:56:12 2006
@@ -679,6 +679,10 @@
         return caps;
     if (use_yuv && format == IMGFMT_YV12)
         return caps;
+    // HACK, otherwise we get only b&w with some filters (e.g. -vf eq)
+    // ideally MPlayer should be fixed instead not to use Y800 when it has the choice
+    if (!use_yuv && (format == IMGFMT_Y8 || format == IMGFMT_Y800))
+        return 0;
     if (many_fmts &&
          glFindFormat(format, NULL, NULL, NULL, NULL))
         return caps;



More information about the MPlayer-cvslog mailing list