Commit 5df29eda authored by ramiro's avatar ramiro

Print usage instead of help when no files are specified.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20905 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bafcd81
...@@ -3995,8 +3995,11 @@ int main(int argc, char **argv) ...@@ -3995,8 +3995,11 @@ int main(int argc, char **argv)
/* parse options */ /* parse options */
parse_options(argc, argv, options, opt_output_file); parse_options(argc, argv, options, opt_output_file);
if(nb_output_files <= 0 && nb_input_files == 0) if(nb_output_files <= 0 && nb_input_files == 0) {
show_help(); show_usage();
fprintf(stderr, "Use -h to get full help or, even better, run 'man ffmpeg'\n");
av_exit(1);
}
/* file converter / grab */ /* file converter / grab */
if (nb_output_files <= 0) { if (nb_output_files <= 0) {
......
...@@ -2546,8 +2546,9 @@ int main(int argc, char **argv) ...@@ -2546,8 +2546,9 @@ int main(int argc, char **argv)
parse_options(argc, argv, options, opt_input_file); parse_options(argc, argv, options, opt_input_file);
if (!input_filename) { if (!input_filename) {
show_help(); show_usage();
fprintf(stderr, "An input file must be specified\n"); fprintf(stderr, "An input file must be specified\n");
fprintf(stderr, "Use -h to get full help or, even better, run 'man ffplay'\n");
exit(1); exit(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment