Mercurial > mplayer.hg
changeset 19356:595ac8077dc5
Disable Y800 colorspace support, otherwise mplayer uses it even when it's not supposed to.
author | reimar |
---|---|
date | Tue, 08 Aug 2006 14:56:12 +0000 |
parents | ba95c4fa0684 |
children | 59af53f4f436 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Tue Aug 08 14:13:51 2006 +0000 +++ b/libvo/vo_gl.c Tue Aug 08 14:56:12 2006 +0000 @@ -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;