From 29e1b9d90c23c2c1e377dfec9960a232445acd33 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 21 Feb 2024 15:57:17 +0100 Subject: fftools/cmdutils: remove harmful variable shadowing It causes write_option() to return 0 when calling func_arg() fails. --- fftools/cmdutils.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fftools') diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 5e181a0d85..3d613a4018 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -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); -- cgit v1.2.3