mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 21:08:59 +08:00
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
This commit is contained in:

committed by
Benoit Fouet

parent
5adf43e47e
commit
3688f93aed
10
ffmpeg.c
10
ffmpeg.c
@ -3718,8 +3718,18 @@ static void show_license(void)
|
|||||||
exit(1);
|
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)
|
static void show_help(void)
|
||||||
{
|
{
|
||||||
|
av_log_set_callback(log_callback_help);
|
||||||
show_banner();
|
show_banner();
|
||||||
printf("usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...\n"
|
printf("usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...\n"
|
||||||
"Hyper fast Audio and Video encoder\n");
|
"Hyper fast Audio and Video encoder\n");
|
||||||
|
Reference in New Issue
Block a user