mirror of https://git.ffmpeg.org/ffmpeg.git
Fix files with fps between 0.5 and 0.1.
Fixes issue749 Originally committed as revision 16123 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
492322fccc
commit
3a3ee96cd1
2
ffplay.c
2
ffplay.c
|
@ -1024,7 +1024,7 @@ static void video_refresh_timer(void *opaque)
|
||||||
|
|
||||||
/* compute nominal delay */
|
/* compute nominal delay */
|
||||||
delay = vp->pts - is->frame_last_pts;
|
delay = vp->pts - is->frame_last_pts;
|
||||||
if (delay <= 0 || delay >= 2.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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue