You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avconv: do not use poorly defined and undocumented AVStream.pts
Use OutputStream.last_mux_dts as an approximation of 'current' output time instead.
This commit is contained in:
2
avconv.c
2
avconv.c
@@ -955,7 +955,7 @@ static void print_report(int is_last_report, int64_t timer_start)
|
|||||||
vid = 1;
|
vid = 1;
|
||||||
}
|
}
|
||||||
/* compute min output value */
|
/* 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))
|
if ((pts < ti1) && (pts > 0))
|
||||||
ti1 = pts;
|
ti1 = pts;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user