fftools/cmdutils: remove harmful variable shadowing
It causes write_option() to return 0 when calling func_arg() fails.
This commit is contained in:
@@ -339,8 +339,6 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt,
|
|||||||
|
|
||||||
*(double *)dst = num;
|
*(double *)dst = num;
|
||||||
} else {
|
} else {
|
||||||
int ret;
|
|
||||||
|
|
||||||
av_assert0(po->type == OPT_TYPE_FUNC && po->u.func_arg);
|
av_assert0(po->type == OPT_TYPE_FUNC && po->u.func_arg);
|
||||||
|
|
||||||
ret = po->u.func_arg(optctx, opt, arg);
|
ret = po->u.func_arg(optctx, opt, arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user