]> git.sesse.net Git - ffmpeg/commitdiff
Do not force last delay value to its own value.
authorTomer Barletz <barlety@gmail.com>
Wed, 18 Feb 2009 15:23:05 +0000 (15:23 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Wed, 18 Feb 2009 15:23:05 +0000 (15:23 +0000)
Adapted from a patch by Tomer Barletz: surname chez gmail

Originally committed as revision 17432 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index df22b1bd2e4dfbec83b1d3ff71c5a47436946e8d..8a7fca8d1204e0cbe3702fe18badb8379ba065ce 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1014,8 +1014,9 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is)
     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 */