From 223876d92bdf3b4baef2d5d3792392a820e35993 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Oct 2019 00:47:45 +0200 Subject: [PATCH] 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). --- options/options.c | 5 ++--- 1 file 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})),