summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-08 14:56:12 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-08 14:56:12 +0000
commitc7d8e7abfac5ddd49d58a88630297822745a0d05 (patch)
treeb8828422a525a289a7905267997b72857e7d833f /libvo
parentf1ee0a4db230bd4b80957ddb882dd8306a7cf4b9 (diff)
downloadmpv-c7d8e7abfac5ddd49d58a88630297822745a0d05.tar.bz2
mpv-c7d8e7abfac5ddd49d58a88630297822745a0d05.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c4
1 files changed, 4 insertions, 0 deletions
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;