1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

ffmpeg: count finished streams for last stats line.

Otherwise, all streams are finished and the time is nonsensical.
This commit is contained in:
Nicolas George
2012-08-28 23:19:33 +02:00
parent 6c06b566d2
commit a9b1a151d2

View File

@@ -1154,7 +1154,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
vid = 1; vid = 1;
} }
/* compute min output value */ /* 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, pts = FFMAX(pts, av_rescale_q(ost->st->pts.val,
ost->st->time_base, AV_TIME_BASE_Q)); ost->st->time_base, AV_TIME_BASE_Q));
} }