diff --git a/ffmpeg.c b/ffmpeg.c index 6a353464c8477edea178549c4e6155fdafafb72e..d1affc008e3f8c30bde33908f5ec07f1ae400d38 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];