diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-08 14:56:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-08 14:58:38 +0200 |
commit | 408c9cf0e21d83d21865c3e27e1c44a9da30a98c (patch) | |
tree | 6d65a99321c129d6448bb35c8165c0433fc92f53 /cmdutils.c | |
parent | 6dbaeed6b7b7c858dffdf141b725506b887660e7 (diff) | |
download | ffmpeg-408c9cf0e21d83d21865c3e27e1c44a9da30a98c.tar.gz |
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index e87d5eef75..51fd7c9b32 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -532,7 +532,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, 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) { const AVOption *o; |