diff options
author | wm4 <wm4@nowhere> | 2013-09-07 08:53:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-07 08:54:28 +0200 |
commit | 73e4094770f4b02f4083c6ecb9b3ca414a06ab35 (patch) | |
tree | 36a8a3e5b2c161e4ae8c8705912868f1a6bf2f4c /mpvcore | |
parent | f5572919e40f5f1bbd0d5043ad837921603f6c98 (diff) | |
download | mpv-73e4094770f4b02f4083c6ecb9b3ca414a06ab35.tar.bz2 mpv-73e4094770f4b02f4083c6ecb9b3ca414a06ab35.tar.xz |
options: fix --volume option range, add some explanations to manpage
The --volume option accepted values up to 10000, but internally, the
value is always clipped to 0-100 range. What makes this even worse is
that --softvol-max suggests that it extends the range of --volume, which
is not the case. (And passing a volume larger than 100 to --volume
didn't even print a warning.)
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c index b66556d8bd..253fb364e8 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -550,7 +550,7 @@ const m_option_t mp_opts[] = { {"auto", SOFTVOL_AUTO})), OPT_FLOATRANGE("softvol-max", softvol_max, 0, 10, 10000), OPT_INTRANGE("volstep", volstep, 0, 0, 100), - OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 10000), + OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 100), OPT_CHOICE("mute", mixer_init_mute, M_OPT_OPTIONAL_PARAM, ({"auto", -1}, {"no", 0}, |