mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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
Block a user