From c55d85992078e465f9e0b7b6998ccdc5f5e77703 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Aug 2016 18:10:11 +0200 Subject: m_option: replace --no-video-aspect alias Instead, add a hacky OPT_ASPECT option type, which only exists to accept a "no" parameter, which in combination with the "--no-..." handling code makes --no-video-aspect work again. We can also remove the code in m_config.c, which only existed to make "--no-aspect" (a deprecated alias) to work. --- options/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 92eb0fd9c5..7b0f3c43e1 100644 --- a/options/options.c +++ b/options/options.c @@ -395,8 +395,7 @@ const m_option_t mp_opts[] = { // -1 means auto aspect (prefer container size until aspect change) // 0 means square pixels - OPT_FLOATRANGE("video-aspect", movie_aspect, 0, -1.0, 10.0), - OPT_FLOAT_STORE("no-video-aspect", movie_aspect, 0, 0.0), + OPT_ASPECT("video-aspect", movie_aspect, 0, -1.0, 10.0), OPT_CHOICE("video-aspect-method", aspect_method, 0, ({"hybrid", 0}, {"bitstream", 1}, {"container", 2})), -- cgit v1.2.3