From 7205e75079b4445cddd4549820491bdba250bc02 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Mar 2015 13:28:20 +0100 Subject: 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. --- audio/filter/af_bs2b.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/filter') 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} -- cgit v1.2.3