aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-04-28 00:53:51 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-06-07 21:42:26 +0200
commitd9b9fc4be26014eb7221d9bbc297a5323d5ad40b (patch)
tree4f3c875f797cc62b020e5f75f33367343fe210af /fftools/cmdutils.c
parent5b82852519e92a2b94de0f22da1a81df5b3e0412 (diff)
downloadffmpeg-d9b9fc4be26014eb7221d9bbc297a5323d5ad40b.tar.gz
fftools/cmdutils: Add protective () to FLAGS
issue found while reviewing CID1452612 Free of array-typed value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'fftools/cmdutils.c')
-rw-r--r--fftools/cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 9cdf92ff37..a504acb3e4 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -578,7 +578,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit,
return o;
}
-#define FLAGS (o->type == AV_OPT_TYPE_FLAGS && (arg[0]=='-' || arg[0]=='+')) ? 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;