forked from FFmpeg/FFmpeg
fftools/cmdutils: remove harmful variable shadowing
It causes write_option() to return 0 when calling func_arg() fails.
This commit is contained in:
parent
7d82daf31d
commit
29e1b9d90c
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue