summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6a353464c8..d1affc008e 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];