diff options
author | Tomer Barletz <barlety@gmail.com> | 2009-02-18 15:23:05 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-02-18 15:23:05 +0000 |
commit | 443658fd8bb5a6a4eadbae6747bfee5028708f62 (patch) | |
tree | 1143110ce2015be0f5e6fdebbb4170ca0f28c56f /ffplay.c | |
parent | 49410784deb98f8615526c3701a61f671933a7d4 (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |