From b25f69ed6236da4f8cd5d32c4e8da96ee6ca2efe Mon Sep 17 00:00:00 2001 From: stefano Date: Mon, 17 Nov 2008 23:15:29 +0000 Subject: [PATCH] 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 --- ffmpeg.c | 4 ---- ffplay.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index c53b8e65f..9308cc402 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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); diff --git a/ffplay.c b/ffplay.c index 67fbff202..f7ff48d2e 100644 --- a/ffplay.c +++ b/ffplay.c @@ -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); } -- 2.39.2