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
pull/126/head
Michael McConnell 18 years ago committed by Michael Niedermayer
parent 6d3d8daef9
commit 917fa192c7
  1. 3
      ffplay.c

@ -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;
}
}

Loading…
Cancel
Save