summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gpu/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index b0fa9eb4d9..c12fb8536c 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -351,7 +351,8 @@ const struct m_sub_options gl_video_conf = {
OPT_FLAG("gamma-auto", gamma_auto, 0),
OPT_CHOICE_C("target-prim", target_prim, 0, mp_csp_prim_names),
OPT_CHOICE_C("target-trc", target_trc, 0, mp_csp_trc_names),
- OPT_INTRANGE("target-peak", target_peak, 0, 10, 10000),
+ OPT_CHOICE_OR_INT("target-peak", target_peak, 0, 10, 10000,
+ ({"auto", 0})),
OPT_CHOICE("tone-mapping", tone_mapping, 0,
({"clip", TONE_MAPPING_CLIP},
{"mobius", TONE_MAPPING_MOBIUS},