[FFmpeg-cvslog] ffmpeg: count finished streams for last stats line.

Nicolas George git at videolan.org
Tue Aug 28 23:56:00 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Aug 28 23:19:33 2012 +0200| [a9b1a151d235c7bd41e3458c79ad2160de7e1461] | committer: Nicolas George

ffmpeg: count finished streams for last stats line.

Otherwise, all streams are finished and the time is nonsensical.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9b1a151d235c7bd41e3458c79ad2160de7e1461
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 58308c9..a980303 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1154,7 +1154,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
             vid = 1;
         }
         /* compute min output value */
-        if (!ost->finished && ost->st->pts.val != AV_NOPTS_VALUE)
+        if ((is_last_report || !ost->finished) && ost->st->pts.val != AV_NOPTS_VALUE)
             pts = FFMAX(pts, av_rescale_q(ost->st->pts.val,
                                           ost->st->time_base, AV_TIME_BASE_Q));
     }



More information about the ffmpeg-cvslog mailing list