Use OutputStream.last_mux_dts as an approximation of 'current' output time instead.
Unified · Split
| @@ -955,7 +955,7 @@ static void print_report(int is_last_report, int64_t timer_start) · 954 unmodified lines | |||
| 955 | vid = 1; | 955 | vid = 1; |
| 956 | } | 956 | } |
| 957 | /* compute min output value */ | 957 | /* compute min output value */ |
| 958 | pts = (double)ost->st->pts.val * av_q2d(ost->st->time_base); | 958 | pts = (double)ost->last_mux_dts * av_q2d(ost->st->time_base); |
| 959 | if ((pts < ti1) && (pts > 0)) | 959 | if ((pts < ti1) && (pts > 0)) |
| 960 | ti1 = pts; | 960 | ti1 = pts; |
| 961 | } | 961 | } |