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

bcoudurier subversion
Tue Jan 20 22:09:51 CET 2009


Author: bcoudurier
Date: Tue Jan 20 22:09:51 2009
New Revision: 16704

Log:
exit with error code if av_encode failed

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Tue Jan 20 22:06:57 2009	(r16703)
+++ trunk/ffmpeg.c	Tue Jan 20 22:09:51 2009	(r16704)
@@ -3918,8 +3918,9 @@ int main(int argc, char **argv)
     }
 
     ti = getutime();
-    av_encode(output_files, nb_output_files, input_files, nb_input_files,
-              stream_maps, nb_stream_maps);
+    if (av_encode(output_files, nb_output_files, input_files, nb_input_files,
+                  stream_maps, nb_stream_maps) < 0)
+        av_exit(1);
     ti = getutime() - ti;
     if (do_benchmark) {
         printf("bench: utime=%0.3fs\n", ti / 1000000.0);




More information about the ffmpeg-cvslog mailing list