aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-18 12:21:32 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-19 07:14:11 +0200
commitdc40d88625d7e402d58ac3f3df69fbf27aa31ea0 (patch)
treeca99671e32f87353b58c7a191203470e482757b8 /avconv.c
parentc9f8809ee4c576d5833865039bc1c85754448f67 (diff)
downloadffmpeg-dc40d88625d7e402d58ac3f3df69fbf27aa31ea0.tar.gz
avconv: do not use poorly defined and undocumented AVStream.pts
Use OutputStream.last_mux_dts as an approximation of 'current' output time instead.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avconv.c b/avconv.c
index 56b9baa51d..2cee09bc22 100644
--- a/avconv.c
+++ b/avconv.c
@@ -955,7 +955,7 @@ static void print_report(int is_last_report, int64_t timer_start)
vid = 1;
}
/* compute min output value */
- pts = (double)ost->st->pts.val * av_q2d(ost->st->time_base);
+ pts = (double)ost->last_mux_dts * av_q2d(ost->st->time_base);
if ((pts < ti1) && (pts > 0))
ti1 = pts;
}