[Ffmpeg-cvslog] r7866 - trunk/ffplay.c

michael subversion
Wed Feb 7 01:52:38 CET 2007


Author: michael
Date: Wed Feb  7 01:52:35 2007
New Revision: 7866

Modified:
   trunk/ffplay.c

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


Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Wed Feb  7 01:52:35 2007
@@ -984,8 +984,9 @@
 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;
     }
 }
 




More information about the ffmpeg-cvslog mailing list