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).
This commit is contained in:
wm4 2019-10-25 00:47:45 +02:00
parent 7ac622bc5f
commit 223876d92b
1 changed files with 2 additions and 3 deletions

View File

@ -522,9 +522,8 @@ const m_option_t mp_opts[] = {
OPT_STRING("audio-spdif", audio_spdif, 0), OPT_STRING("audio-spdif", audio_spdif, 0),
// -1 means auto aspect (prefer container size until aspect change) OPT_ASPECT("video-aspect-override", movie_aspect, UPDATE_IMGPAR | M_OPT_RANGE,
// 0 means square pixels .min = -1, .max = 10),
OPT_ASPECT("video-aspect-override", movie_aspect, UPDATE_IMGPAR, -1.0, 10.0),
OPT_CHOICE("video-aspect-method", aspect_method, UPDATE_IMGPAR, OPT_CHOICE("video-aspect-method", aspect_method, UPDATE_IMGPAR,
({"bitstream", 1}, {"container", 2})), ({"bitstream", 1}, {"container", 2})),