aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-12-21 02:12:34 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-12-21 02:12:34 +0000
commit0c2a18cbcdbaa931cb151692a340c0b4cab05028 (patch)
tree63d4d1590cb0db54c19f6ded327ae7a978e830a8 /ffmpeg.c
parent8319aefeecdba4970586346aac0481e2ceb4e90b (diff)
downloadffmpeg-0c2a18cbcdbaa931cb151692a340c0b4cab05028.tar.gz
Split show_usage() out of show_help().
Originally committed as revision 20904 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 0c578ed371..19e4405a5e 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",