Commit 08f33bee authored by michael's avatar michael

Fix to loss of sync in ffplay when paused patch by (Michael McConnell ///...

Fix to loss of sync in ffplay when paused patch by (Michael McConnell /// soruk put at here eridani and here a dot co.uk)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7866 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 105cc89e
......@@ -984,8 +984,9 @@ static void stream_seek(VideoState *is, int64_t pos, int rel)
static void stream_pause(VideoState *is)
{
is->paused = !is->paused;
if (is->paused) {
if (!is->paused) {
is->video_current_pts = get_video_clock(is);
is->frame_timer += (av_gettime() - is->video_current_pts_time) / 1000000.0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment