1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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
This commit is contained in:
reimar 2006-08-08 14:56:12 +00:00
parent f1ee0a4db2
commit c7d8e7abfa

View File

@ -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;