[SCM] libav/experimental: Split show_usage() out of show_help().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:56:17 UTC 2013


The following commit has been merged in the experimental branch:
commit 0c2a18cbcdbaa931cb151692a340c0b4cab05028
Author: Ramiro Polla <ramiro.polla at gmail.com>
Date:   Mon Dec 21 02:12:34 2009 +0000

    Split show_usage() out of show_help().
    
    Originally committed as revision 20904 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index 0c578ed..19e4405 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3563,12 +3563,17 @@ static void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
     vfprintf(stdout, fmt, vl);
 }
 
-static void show_help(void)
+static void show_usage(void)
 {
-    av_log_set_callback(log_callback_help);
     printf("Hyper fast Audio and Video encoder\n");
     printf("usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...\n");
     printf("\n");
+}
+
+static void show_help(void)
+{
+    av_log_set_callback(log_callback_help);
+    show_usage();
     show_help_options(options, "Main options:\n",
                       OPT_EXPERT | OPT_AUDIO | OPT_VIDEO | OPT_SUBTITLE | OPT_GRAB, 0);
     show_help_options(options, "\nAdvanced options:\n",
diff --git a/ffplay.c b/ffplay.c
index e0b248e..a254203 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2490,11 +2490,16 @@ static const OptionDef options[] = {
     { NULL, },
 };
 
-static void show_help(void)
+static void show_usage(void)
 {
     printf("Simple media player\n");
     printf("usage: ffplay [options] input_file\n");
     printf("\n");
+}
+
+static void show_help(void)
+{
+    show_usage();
     show_help_options(options, "Main options:\n",
                       OPT_EXPERT, 0);
     show_help_options(options, "\nAdvanced options:\n",

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list