1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-24 14:30:15 +02:00

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

specific error message instead.

Originally committed as revision 15868 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2008-11-17 23:15:29 +00:00
parent 40b509b36b
commit 7a7da6b42f
2 changed files with 1 additions and 5 deletions

View File

@ -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);
show_banner();
if (argc <= 1) {
show_help();
av_exit(1);
}
/* parse options */
parse_options(argc, argv, options, opt_output_file);

View File

@ -2553,7 +2553,7 @@ int main(int argc, char **argv)
parse_options(argc, argv, options, opt_input_file);
if (!input_filename) {
show_help();
fprintf(stderr, "An input file must be specified\n");
exit(1);
}