summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicola.george@normalesup.org>2007-05-09 08:17:35 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-05-09 08:17:35 +0000
commit3688f93aede7e2f37519ddbed19e4a0f57331ef5 (patch)
tree110c94cc97773d65209ebbbc66a45fabe1579ee9 /ffmpeg.c
parent5adf43e47e014afbbfe7bc87977da0c1a620a20c (diff)
make help message go to standard output instead of standard error
patch by Nicolas George \ nicolas george normalesup org / Originally committed as revision 8947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 105e113428..c596c0058a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3718,8 +3718,18 @@ static void show_license(void)
exit(1);
}
+/**
+ * Trivial log callback.
+ * Only suitable for show_help and similar since it lacks prefix handling.
+ */
+static void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
+{
+ vfprintf(stdout, fmt, vl);
+}
+
static void show_help(void)
{
+ av_log_set_callback(log_callback_help);
show_banner();
printf("usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...\n"
"Hyper fast Audio and Video encoder\n");