10l (stats didnt include av_write_trailer())
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Apr 2004 16:34:38 +0000 (16:34 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Apr 2004 16:34:38 +0000 (16:34 +0000)
Originally committed as revision 3015 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 6a35346..d1affc0 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1677,15 +1677,15 @@ static int av_encode(AVFormatContext **output_files,
 
     term_exit();
 
-    /* dump report by using the first video and audio streams */
-    print_report(output_files, ost_table, nb_ostreams, 1);
-
     /* write the trailer if needed and close file */
     for(i=0;i<nb_output_files;i++) {
         os = output_files[i];
         av_write_trailer(os);
     }
 
+    /* dump report by using the first video and audio streams */
+    print_report(output_files, ost_table, nb_ostreams, 1);
+
     /* close each encoder */
     for(i=0;i<nb_ostreams;i++) {
         ost = ost_table[i];