From c7d8e7abfac5ddd49d58a88630297822745a0d05 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 8 Aug 2006 14:56:12 +0000 Subject: Disable Y800 colorspace support, otherwise mplayer uses it even when it's not supposed to. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19362 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo') diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index a7f7139087..916fafd2bd 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -679,6 +679,10 @@ query_format(uint32_t format) 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; -- cgit v1.2.3