diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-01-06 22:08:13 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-01-07 14:02:13 +0400 |
commit | ceef1ee7674f21824a3392c654465b43b06c94fe (patch) | |
tree | e20c105177bb2d38251b6d625ef0ae3a10004a21 /avconv.c | |
parent | 44cc1936be0ec2d734e5e2b4e215ce2908caf46e (diff) |
cmdutils: make show_usage() use av_log()
Avoid printing on stdout when show_usage is used in an error message.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4187,9 +4187,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) |