Browse Source

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
tags/v0.5
Michael McConnell Michael Niedermayer 18 years ago
parent
commit
917fa192c7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffplay.c

+ 2
- 1
ffplay.c View File

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