Browse code

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

Stefano Sabatini authored on 2008/11/18 08:15:29
Showing 2 changed files
... ...
@@ -3874,10 +3874,6 @@ int main(int argc, char **argv)
3874 3874
     sws_opts = sws_getContext(16,16,0, 16,16,0, sws_flags, NULL,NULL,NULL);
3875 3875
 
3876 3876
     show_banner();
3877
-    if (argc <= 1) {
3878
-        show_help();
3879
-        av_exit(1);
3880
-    }
3881 3877
 
3882 3878
     /* parse options */
3883 3879
     parse_options(argc, argv, options, opt_output_file);
... ...
@@ -2553,7 +2553,7 @@ int main(int argc, char **argv)
2553 2553
     parse_options(argc, argv, options, opt_input_file);
2554 2554
 
2555 2555
     if (!input_filename) {
2556
-        show_help();
2556
+        fprintf(stderr, "An input file must be specified\n");
2557 2557
         exit(1);
2558 2558
     }
2559 2559