aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael McConnell <soruk@eridani.co.uk>2007-02-07 00:52:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-02-07 00:52:35 +0000
commit917fa192c72e226ffaddefbe6661ec3c405156cf (patch)
tree59da1669f660ea4b525deb2b73b8541858e8d719 /ffplay.c
parent6d3d8daef9bae5fb8e186a48e4ce9acad7c1b0db (diff)
downloadffmpeg-917fa192c72e226ffaddefbe6661ec3c405156cf.tar.gz
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
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 1c3aa63e89..2504878bd4 100644
--- a/ffplay.c
+++ b/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;
}
}