Remove unnecessary calls to show_help(), make ffmpeg/ffplay print a
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 17 Nov 2008 23:15:29 +0000 (23:15 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 17 Nov 2008 23:15:29 +0000 (23:15 +0000)
specific error message instead.

Originally committed as revision 15868 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c
ffplay.c

index c53b8e65ff9247fcc5f3b8fe4d26af3777a7f087..9308cc40256ffbb6d7bfbf33838c6b1116921dbc 100644 (file)
--- 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);
index 67fbff202fc07ac7ee90421aaf44cd2c8d6c796b..f7ff48d2e86a7b89575b32245988ca4979c2e5ce 100644 (file)
--- 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);
     }