Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-08 15:56:29 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-08 15:58:38 +0300
commit408c9cf0e21d83d21865c3e27e1c44a9da30a98c (patch)
tree6d65a99321c129d6448bb35c8165c0433fc92f53 /cmdutils.c
parent6dbaeed6b7b7c858dffdf141b725506b887660e7 (diff)
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.c2
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;