[FFmpeg-cvslog] r15868 - in trunk: ffmpeg.c ffplay.c

stefano subversion
Tue Nov 18 00:15:30 CET 2008


Author: stefano
Date: Tue Nov 18 00:15:29 2008
New Revision: 15868

Log:
Remove unnecessary calls to show_help(), make ffmpeg/ffplay print a
specific error message instead.


Modified:
   trunk/ffmpeg.c
   trunk/ffplay.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Tue Nov 18 00:15:29 2008
@@ -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);

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Tue Nov 18 00:15:29 2008
@@ -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);
     }
 




More information about the ffmpeg-cvslog mailing list