aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-28 23:19:33 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-28 23:19:33 +0200
commita9b1a151d235c7bd41e3458c79ad2160de7e1461 (patch)
tree64957e75cccb5d6cf4200c1d46c73a3d78e07e46
parent6c06b566d2bb7d977bb90e12f3d035c7fc81bffd (diff)
downloadffmpeg-a9b1a151d235c7bd41e3458c79ad2160de7e1461.tar.gz
ffmpeg: count finished streams for last stats line.
Otherwise, all streams are finished and the time is nonsensical.
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 58308c9c31..a980303a73 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));
}