diff options
author | Michael McConnell <soruk@eridani.co.uk> | 2007-02-07 00:52:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-02-07 00:52:35 +0000 |
commit | 917fa192c72e226ffaddefbe6661ec3c405156cf (patch) | |
tree | 59da1669f660ea4b525deb2b73b8541858e8d719 /ffplay.c | |
parent | 6d3d8daef9bae5fb8e186a48e4ce9acad7c1b0db (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |