diff options
author | wm4 <wm4@nowhere> | 2019-10-25 00:47:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-25 00:47:45 +0200 |
commit | 223876d92bdf3b4baef2d5d3792392a820e35993 (patch) | |
tree | 2b9fade572a74884c4e9feff08fca622c839da25 | |
parent | 7ac622bc5fa2c58e529e4865d4e2264f66ac7116 (diff) | |
download | mpv-223876d92bdf3b4baef2d5d3792392a820e35993.tar.bz2 mpv-223876d92bdf3b4baef2d5d3792392a820e35993.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.c | 5 |
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})), |