mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
49410784de
commit
443658fd8b
3
ffplay.c
3
ffplay.c
@ -1014,8 +1014,9 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is)
|
|||||||
if (delay <= 0 || delay >= 10.0) {
|
if (delay <= 0 || delay >= 10.0) {
|
||||||
/* if incorrect delay, use previous one */
|
/* if incorrect delay, use previous one */
|
||||||
delay = is->frame_last_delay;
|
delay = is->frame_last_delay;
|
||||||
}
|
} else {
|
||||||
is->frame_last_delay = delay;
|
is->frame_last_delay = delay;
|
||||||
|
}
|
||||||
is->frame_last_pts = frame_current_pts;
|
is->frame_last_pts = frame_current_pts;
|
||||||
|
|
||||||
/* update delay to follow master synchronisation source */
|
/* update delay to follow master synchronisation source */
|
||||||
|
Loading…
Reference in New Issue
Block a user