Commit 408c9cf0 authored by Michael Niedermayer's avatar Michael Niedermayer

cmdutils: Fix overriding flags on the command line.

Previously the code just appended the strings of flags which
worked with "+bitexact" but would not work with something like "0"
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6dbaeed6
...@@ -532,7 +532,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, ...@@ -532,7 +532,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit,
return o; return o;
} }
#define FLAGS (o->type == AV_OPT_TYPE_FLAGS) ? AV_DICT_APPEND : 0 #define FLAGS (o->type == AV_OPT_TYPE_FLAGS && (arg[0]=='-' || arg[0]=='+')) ? AV_DICT_APPEND : 0
int opt_default(void *optctx, const char *opt, const char *arg) int opt_default(void *optctx, const char *opt, const char *arg)
{ {
const AVOption *o; const AVOption *o;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment