diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-02-21 15:57:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-24 11:51:21 +0100 |
commit | 29e1b9d90c23c2c1e377dfec9960a232445acd33 (patch) | |
tree | 969d86995fdcb9a2899f04d4dc2aae92755ce9f1 /fftools | |
parent | 7d82daf31da1322226c8be64e6530a2cdf45bde2 (diff) |
fftools/cmdutils: remove harmful variable shadowing
It causes write_option() to return 0 when calling func_arg() fails.
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/cmdutils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 5e181a0d85..3d613a4018 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -339,8 +339,6 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt, *(double *)dst = num; } else { - int ret; - av_assert0(po->type == OPT_TYPE_FUNC && po->u.func_arg); ret = po->u.func_arg(optctx, opt, arg); |