Commit b25f69ed authored by stefano's avatar stefano

Remove unnecessary calls to show_help(), make ffmpeg/ffplay print a

specific error message instead.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15868 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 546e53b1
...@@ -3874,10 +3874,6 @@ int main(int argc, char **argv) ...@@ -3874,10 +3874,6 @@ int main(int argc, char **argv)
sws_opts = sws_getContext(16,16,0, 16,16,0, sws_flags, NULL,NULL,NULL); sws_opts = sws_getContext(16,16,0, 16,16,0, sws_flags, NULL,NULL,NULL);
show_banner(); show_banner();
if (argc <= 1) {
show_help();
av_exit(1);
}
/* parse options */ /* parse options */
parse_options(argc, argv, options, opt_output_file); parse_options(argc, argv, options, opt_output_file);
......
...@@ -2553,7 +2553,7 @@ int main(int argc, char **argv) ...@@ -2553,7 +2553,7 @@ 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(); fprintf(stderr, "An input file must be specified\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