aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorTomer Barletz <barlety@gmail.com>2009-02-18 15:23:05 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-18 15:23:05 +0000
commit443658fd8bb5a6a4eadbae6747bfee5028708f62 (patch)
tree1143110ce2015be0f5e6fdebbb4170ca0f28c56f /ffplay.c
parent49410784deb98f8615526c3701a61f671933a7d4 (diff)
downloadffmpeg-443658fd8bb5a6a4eadbae6747bfee5028708f62.tar.gz
Do not force last delay value to its own value.
Adapted from a patch by Tomer Barletz: surname chez gmail Originally committed as revision 17432 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index df22b1bd2e..8a7fca8d12 100644
--- 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 */