提交 81d884d3 编写于 作者: Z Zhang Rui

ffplay: no need to detect isnan(frame_timer)

上级 c3adebdc
......@@ -407,9 +407,7 @@ static void stream_toggle_pause_l(FFPlayer *ffp, int pause_on)
{
VideoState *is = ffp->is;
if (is->paused && !pause_on) {
double frame_timer_diff = is->vidclk.pts_drift - is->vidclk.pts;
if (!isnan(frame_timer_diff))
is->frame_timer += av_gettime() / 1000000.0 + frame_timer_diff;
is->frame_timer += av_gettime() / 1000000.0 + is->vidclk.pts_drift - is->vidclk.pts;
#ifdef FFP_MERGE
if (is->read_pause_return != AVERROR(ENOSYS)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册