You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Show help if no cmd line options are provided at all.
This safes the users time to find out which of -h --help -? works. Originally committed as revision 20822 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
3
ffmpeg.c
3
ffmpeg.c
@@ -3985,6 +3985,9 @@ int main(int argc, char **argv)
|
||||
/* parse options */
|
||||
parse_options(argc, argv, options, opt_output_file);
|
||||
|
||||
if(nb_output_files <= 0 && nb_input_files == 0)
|
||||
show_help();
|
||||
|
||||
/* file converter / grab */
|
||||
if (nb_output_files <= 0) {
|
||||
fprintf(stderr, "At least one output file must be specified\n");
|
||||
|
Reference in New Issue
Block a user