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

stefano subversion
Tue Nov 18 00:27:05 CET 2008


Author: stefano
Date: Tue Nov 18 00:27:05 2008
New Revision: 15870

Log:
Improve error message in case of output file with no streams, dumping
the empty file format representation and specifying the index number
of the output file.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Tue Nov 18 00:27:05 2008
@@ -1582,7 +1582,8 @@ static int av_encode(AVFormatContext **o
     for(i=0;i<nb_output_files;i++) {
         os = output_files[i];
         if (!os->nb_streams) {
-            fprintf(stderr, "Output file does not contain any stream\n");
+            dump_format(output_files[i], i, output_files[i]->filename, 1);
+            fprintf(stderr, "Output file #%d does not contain any stream\n", i);
             av_exit(1);
         }
         nb_ostreams += os->nb_streams;




More information about the ffmpeg-cvslog mailing list