[SCM] libav/experimental: Do not force last delay value to its own value. Adapted from a patch by Tomer Barletz: surname chez gmail
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:38:46 UTC 2013
The following commit has been merged in the experimental branch:
commit 443658fd8bb5a6a4eadbae6747bfee5028708f62
Author: Tomer Barletz <barlety at gmail.com>
Date: Wed Feb 18 15:23:05 2009 +0000
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
diff --git a/ffplay.c b/ffplay.c
index df22b1b..8a7fca8 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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list