[FFmpeg-cvslog] r22140 - trunk/ffmpeg.c

stefano subversion
Tue Mar 2 01:01:16 CET 2010


Author: stefano
Date: Tue Mar  2 01:01:16 2010
New Revision: 22140

Log:
Make ffmpeg print a message and abort if the name of the format
provided with -f was unknown.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Tue Mar  2 00:10:27 2010	(r22139)
+++ trunk/ffmpeg.c	Tue Mar  2 01:01:16 2010	(r22140)
@@ -2852,7 +2852,10 @@ static void opt_input_file(const char *f
     int64_t timestamp;
 
     if (last_asked_format) {
-        file_iformat = av_find_input_format(last_asked_format);
+        if (!(file_iformat = av_find_input_format(last_asked_format))) {
+            fprintf(stderr, "Unknown input format: '%s'\n", last_asked_format);
+            av_exit(1);
+        }
         last_asked_format = NULL;
     }
 



More information about the ffmpeg-cvslog mailing list