From 37f5cd5a18a8e08a18814d1aca828c92ee398d10 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Thu, 15 Apr 2004 16:34:38 +0000
Subject: [PATCH] 10l (stats didnt include av_write_trailer())

Originally committed as revision 3015 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 ffmpeg.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 6a353464c84..d1affc008e3 100644
--- 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];
-- 
GitLab