mirror of https://github.com/mpv-player/mpv
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:
parent
7ac622bc5f
commit
223876d92b
|
@ -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})),
|
||||
|
||||
|
|
Loading…
Reference in New Issue