[FFmpeg-cvslog] fftools/cmdutils: remove harmful variable shadowing
Anton Khirnov
git at videolan.org
Sat Feb 24 12:56:52 EET 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Feb 21 15:57:17 2024 +0100| [29e1b9d90c23c2c1e377dfec9960a232445acd33] | committer: Anton Khirnov
fftools/cmdutils: remove harmful variable shadowing
It causes write_option() to return 0 when calling func_arg() fails.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29e1b9d90c23c2c1e377dfec9960a232445acd33
---
fftools/cmdutils.c | 2 --
1 file changed, 2 deletions(-)
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);
More information about the ffmpeg-cvslog
mailing list