diff options
author | wm4 <wm4@nowhere> | 2015-03-22 13:28:20 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-22 13:28:20 +0100 |
commit | 7205e75079b4445cddd4549820491bdba250bc02 (patch) | |
tree | a486f1c1082ae66e56d901159055736aad9b8b43 /audio | |
parent | 6f5db977c062d237a83f102b0249965d19c07596 (diff) | |
download | mpv-7205e75079b4445cddd4549820491bdba250bc02.tar.bz2 mpv-7205e75079b4445cddd4549820491bdba250bc02.tar.xz |
af_bs2b: fix option default value
--af=bs2b:help abort()ed because the default value of the "profile"
option is not represented by any choice. Fix it by adding an "unset"
choice. (It's a bit odd because there's already a "default" choice,
which is not default, but I don't care enough about this filter.)
Fixes #1712.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/filter/af_bs2b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/filter/af_bs2b.c b/audio/filter/af_bs2b.c index 874dbc6786..78f197a7a6 100644 --- a/audio/filter/af_bs2b.c +++ b/audio/filter/af_bs2b.c @@ -164,7 +164,8 @@ const struct af_info af_info_bs2b = { OPT_INTRANGE("fcut", fcut, 0, BS2B_MINFCUT, BS2B_MAXFCUT), OPT_INTRANGE("feed", feed, 0, BS2B_MINFEED, BS2B_MAXFEED), OPT_CHOICE("profile", profile, 0, - ({"default", BS2B_DEFAULT_CLEVEL}, + ({"unset", 0}, + {"default", BS2B_DEFAULT_CLEVEL}, {"cmoy", BS2B_CMOY_CLEVEL}, {"jmeier", BS2B_JMEIER_CLEVEL})), {0} |