---
cmdutils.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 672e1e4..5fda337 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -225,14 +225,12 @@ int parse_option(void *optctx, const char *opt, const
char *arg, const OptionDef
if (!po->name && opt[0] == 'n' && opt[1] == 'o') {
/* handle 'no' bool option */
po = find_option(options, opt + 2);
- if (!(po->name && (po->flags & OPT_BOOL)))
- goto unknown_opt;
- bool_val = 0;
+ if ((po->name && (po->flags & OPT_BOOL)))
+ bool_val = 0;
}
if (!po->name)
po = find_option(options, "default");
if (!po->name) {
-unknown_opt:
av_log(NULL, AV_LOG_ERROR, "Unrecognized option '%s'\n", opt);
return AVERROR(EINVAL);
}
--
1.7.2.5
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel