[FFmpeg-cvslog] fftools/cmdutils: group related calls together

Anton Khirnov git at videolan.org
Thu Oct 10 10:15:49 EEST 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Oct  7 11:46:15 2024 +0200| [e56d676050d38949947f91de1fcede45897a5817] | committer: Anton Khirnov

fftools/cmdutils: group related calls together

For readability only, should have no functional effect.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e56d676050d38949947f91de1fcede45897a5817
---

 fftools/cmdutils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 9beed94ead..9eb49dbf20 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -551,11 +551,12 @@ static void check_options(const OptionDef *po)
 
 void parse_loglevel(int argc, char **argv, const OptionDef *options)
 {
-    int idx = locate_option(argc, argv, options, "loglevel");
+    int idx;
     char *env;
 
     check_options(options);
 
+    idx = locate_option(argc, argv, options, "loglevel");
     if (!idx)
         idx = locate_option(argc, argv, options, "v");
     if (idx && argv[idx + 1])



More information about the ffmpeg-cvslog mailing list