aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2012-12-03 22:01:38 -0800
committerMichael Niedermayer <michaelni@gmx.at>2012-12-04 16:36:09 +0100
commite98fab1372eb729f3a62e6ca5cbe764218e07c21 (patch)
treeb37f87468a5ef048478c1c0e9e149ee892cba48a
parent18aaed6475b026f28e47a4635f99d515b40fb5d3 (diff)
downloadffmpeg-e98fab1372eb729f3a62e6ca5cbe764218e07c21.tar.gz
Update video stats log during encode flush
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 55b5f865c7..c32321daad 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1304,6 +1304,11 @@ static void flush_encoders(void)
if (pkt.duration > 0)
pkt.duration = av_rescale_q(pkt.duration, enc->time_base, ost->st->time_base);
write_frame(os, &pkt, ost);
+ ost->frame_number ++;
+ ost->sync_opts ++;
+ if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && vstats_filename) {
+ do_video_stats(ost, pkt.size);
+ }
}
if (stop_encoding)