Skip to content
Snippets Groups Projects
Commit 917fa192 authored by Michael McConnell's avatar Michael McConnell Committed by Michael Niedermayer
Browse files

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)

Originally committed as revision 7866 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6d3d8dae
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment