mirror of https://git.ffmpeg.org/ffmpeg.git
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue