summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-03-16 20:17:22 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-03-16 21:02:27 +1100
commit92f130997440951272a6147a1b01f1d0de302462 (patch)
tree2eb967503b69c82d98f90c813cd0c51f80e10115
parente744eef322a03a73f435cde4f4378dd0bb0f8a3c (diff)
downloadmpv-92f130997440951272a6147a1b01f1d0de302462.tar.bz2
mpv-92f130997440951272a6147a1b01f1d0de302462.tar.xz
vo_opengl: fix srgb replacement options
OPT_REPLACED can't specify option values or multiple options. Change to OPT_REMOVED. Also, target-prim doesn't have an srgb option. BT.709 uses sRGB primaries, so use it instead.
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 104f494c66..ae9df7cad1 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -431,6 +431,7 @@ const struct m_sub_options gl_video_conf = {
OPT_REMOVED("cscale-down", "chroma is never downscaled"),
OPT_REMOVED("scale-sep", "this is set automatically whenever sane"),
OPT_REMOVED("indirect", "this is set automatically whenever sane"),
+ OPT_REMOVED("srgb", "use target-prim=bt709:target-trc=srgb instead"),
OPT_REPLACED("lscale", "scale"),
OPT_REPLACED("lscale-down", "scale-down"),
@@ -442,7 +443,6 @@ const struct m_sub_options gl_video_conf = {
OPT_REPLACED("cparam2", "cscale-param2"),
OPT_REPLACED("cradius", "cscale-radius"),
OPT_REPLACED("cantiring", "cscale-antiring"),
- OPT_REPLACED("srgb", "target-prim=srgb:target-trc=srgb"),
OPT_REPLACED("smoothmotion", "interpolation"),
OPT_REPLACED("smoothmotion-threshold", "tscale-param1"),