summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-31 18:10:11 +0200
committerwm4 <wm4@nowhere>2016-08-31 22:17:21 +0200
commitc55d85992078e465f9e0b7b6998ccdc5f5e77703 (patch)
treedb6a4939daa1c3c0b810710b5d268592a8c29262 /options/options.c
parent2057209057555dc138422daa354fe8db816c629c (diff)
downloadmpv-c55d85992078e465f9e0b7b6998ccdc5f5e77703.tar.bz2
mpv-c55d85992078e465f9e0b7b6998ccdc5f5e77703.tar.xz
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.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c3
1 files changed, 1 insertions, 2 deletions
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})),