[Ffmpeg-cvslog] r6907 - trunk/ffmpeg.c

bcoudurier subversion
Sun Nov 5 21:08:26 CET 2006


Author: bcoudurier
Date: Sun Nov  5 21:08:26 2006
New Revision: 6907

Modified:
   trunk/ffmpeg.c

Log:
move check for output file streams num in av_encode

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sun Nov  5 21:08:26 2006
@@ -1424,6 +1424,10 @@
     nb_ostreams = 0;
     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");
+            exit(1);
+        }
         nb_ostreams += os->nb_streams;
     }
     if (nb_stream_maps > 0 && nb_stream_maps != nb_ostreams) {
@@ -3107,10 +3111,6 @@
             new_audio_stream(oc);
         }
 
-        if (!oc->nb_streams) {
-            fprintf(stderr, "Note: Output file will not contain a video or audio stream\n");
-        }
-
         oc->timestamp = rec_timestamp;
 
         if (str_title)




More information about the ffmpeg-cvslog mailing list