diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-12-21 02:12:34 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-12-21 02:12:34 +0000 |
commit | 0c2a18cbcdbaa931cb151692a340c0b4cab05028 (patch) | |
tree | 63d4d1590cb0db54c19f6ded327ae7a978e830a8 /ffmpeg.c | |
parent | 8319aefeecdba4970586346aac0481e2ceb4e90b (diff) | |
download | ffmpeg-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.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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", |