[SCM] libav/experimental: Fix to loss of sync in ffplay when paused patch by (Michael McConnell /// soruk put at here eridani and here a dot co.uk)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:56:04 UTC 2013


The following commit has been merged in the experimental branch:
commit 917fa192c72e226ffaddefbe6661ec3c405156cf
Author: Michael McConnell <soruk at eridani.co.uk>
Date:   Wed Feb 7 00:52:35 2007 +0000

    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

diff --git a/ffplay.c b/ffplay.c
index 1c3aa63..2504878 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;
     }
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list