forked from FFmpeg/FFmpeg
fix 1fps videos
Originally committed as revision 10276 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
11f81e6a07
commit
ec2fc00d62
1 changed files with 1 additions and 1 deletions
2
ffplay.c
2
ffplay.c
|
@ -1012,7 +1012,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 >= 1.0) {
|
if (delay <= 0 || delay >= 2.0) {
|
||||||
/* if incorrect delay, use previous one */
|
/* if incorrect delay, use previous one */
|
||||||
delay = is->frame_last_delay;
|
delay = is->frame_last_delay;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue