summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-25 00:47:45 +0200
committersfan5 <sfan5@live.de>2019-10-25 15:06:13 +0200
commitf5f285ec3ed33c27291bf13200680c7e6a12e55e (patch)
treec5580cf24d17c485a9d1a4e9ec0fd3f51ad42c7f
parent3c7e20a0e22b61a015b35f989b7d9f0aadb5ae6a (diff)
downloadmpv-f5f285ec3ed33c27291bf13200680c7e6a12e55e.tar.bz2
mpv-f5f285ec3ed33c27291bf13200680c7e6a12e55e.tar.xz
options: set correct range for --video-aspect-override
It appears this option didn't have min/max enabled for quite a while (broken while it was still called --aspect).
-rw-r--r--options/options.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c
index 6743e320da..862975ea48 100644
--- a/options/options.c
+++ b/options/options.c
@@ -522,9 +522,8 @@ const m_option_t mp_opts[] = {
OPT_STRING("audio-spdif", audio_spdif, 0),
- // -1 means auto aspect (prefer container size until aspect change)
- // 0 means square pixels
- OPT_ASPECT("video-aspect-override", movie_aspect, UPDATE_IMGPAR, -1.0, 10.0),
+ OPT_ASPECT("video-aspect-override", movie_aspect, UPDATE_IMGPAR | M_OPT_RANGE,
+ .min = -1, .max = 10),
OPT_CHOICE("video-aspect-method", aspect_method, UPDATE_IMGPAR,
({"bitstream", 1}, {"container", 2})),