[FFmpeg-cvslog] r17432 - trunk/ffplay.c

benoit subversion
Wed Feb 18 16:23:05 CET 2009


Author: benoit
Date: Wed Feb 18 16:23:05 2009
New Revision: 17432

Log:
Do not force last delay value to its own value.
Adapted from a patch by Tomer Barletz: surname chez gmail

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Wed Feb 18 16:17:39 2009	(r17431)
+++ trunk/ffplay.c	Wed Feb 18 16:23:05 2009	(r17432)
@@ -1014,8 +1014,9 @@ static double compute_frame_delay(double
     if (delay <= 0 || delay >= 10.0) {
         /* if incorrect delay, use previous one */
         delay = is->frame_last_delay;
-    }
+    } else {
     is->frame_last_delay = delay;
+    }
     is->frame_last_pts = frame_current_pts;
 
     /* update delay to follow master synchronisation source */




More information about the ffmpeg-cvslog mailing list