Originally committed as revision 17432 to svn://svn.ffmpeg.org/ffmpeg/trunk
Tomer Barletz authored on 2009/02/19 00:23:05... | ... |
@@ -1014,8 +1014,9 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is) |
1014 | 1014 |
if (delay <= 0 || delay >= 10.0) { |
1015 | 1015 |
/* if incorrect delay, use previous one */ |
1016 | 1016 |
delay = is->frame_last_delay; |
1017 |
- } |
|
1017 |
+ } else { |
|
1018 | 1018 |
is->frame_last_delay = delay; |
1019 |
+ } |
|
1019 | 1020 |
is->frame_last_pts = frame_current_pts; |
1020 | 1021 |
|
1021 | 1022 |
/* update delay to follow master synchronisation source */ |