summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-01-06 19:08:13 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-01-07 11:02:13 +0100
commitceef1ee7674f21824a3392c654465b43b06c94fe (patch)
treee20c105177bb2d38251b6d625ef0ae3a10004a21 /ffmpeg.c
parent44cc1936be0ec2d734e5e2b4e215ce2908caf46e (diff)
cmdutils: make show_usage() use av_log()
Avoid printing on stdout when show_usage is used in an error message.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 15ce0894ac..13d7d6cf5e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4593,9 +4593,9 @@ static int opt_audio_qscale(OptionsContext *o, const char *opt, const char *arg)
static void show_usage(void)
{
- printf("Hyper fast Audio and Video encoder\n");
- printf("usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
- printf("\n");
+ av_log(NULL, AV_LOG_INFO, "Hyper fast Audio and Video encoder\n");
+ av_log(NULL, AV_LOG_INFO, "usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
+ av_log(NULL, AV_LOG_INFO, "\n");
}
static int opt_help(const char *opt, const char *arg)