diff options
author | Thierry Foucu <tfoucu@gmail.com> | 2012-12-03 22:01:38 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-04 16:36:09 +0100 |
commit | e98fab1372eb729f3a62e6ca5cbe764218e07c21 (patch) | |
tree | b37f87468a5ef048478c1c0e9e149ee892cba48a | |
parent | 18aaed6475b026f28e47a4635f99d515b40fb5d3 (diff) | |
download | ffmpeg-e98fab1372eb729f3a62e6ca5cbe764218e07c21.tar.gz |
Update video stats log during encode flush
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |