1
0
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:
Anton Khirnov 2024-02-21 15:57:17 +01:00
parent 7d82daf31d
commit 29e1b9d90c

View File

@ -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);