[SCM] libav/experimental: Cosmetics: replace "filename" to "arg" for the name of the argument of opt_input_file(). More consistent and more clear, as "filename" can be easily confused with the global "input_filename".

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:01:37 UTC 2013


The following commit has been merged in the experimental branch:
commit 912dd63ecb4f56772b36bbf676dd4ddc3b6dc64b
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Thu Feb 25 00:05:01 2010 +0000

    Cosmetics: replace "filename" to "arg" for the name of the argument of
    opt_input_file(). More consistent and more clear, as "filename" can be
    easily confused with the global "input_filename".
    
    Originally committed as revision 22045 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffprobe.c b/ffprobe.c
index 31bcd3d..7ac20eb 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -288,15 +288,15 @@ static void opt_format(const char *arg)
     }
 }
 
-static void opt_input_file(const char *filename)
+static void opt_input_file(const char *arg)
 {
     if (input_filename) {
-        fprintf(stderr, "Input filename already specified: %s\n", filename);
+        fprintf(stderr, "Input filename already specified: %s\n", arg);
         exit(1);
     }
-    if (!strcmp(filename, "-"))
-        filename = "pipe:";
-    input_filename = filename;
+    if (!strcmp(arg, "-"))
+        arg = "pipe:";
+    input_filename = arg;
 }
 
 static void show_help(void)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list