OSDN Git Service

fix 1fps videos
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Aug 2007 23:59:45 +0000 (23:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Aug 2007 23:59:45 +0000 (23:59 +0000)
Originally committed as revision 10276 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index dcd75ff..f39fdb1 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1012,7 +1012,7 @@ static void video_refresh_timer(void *opaque)
 
             /* compute nominal delay */
             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 */
                 delay = is->frame_last_delay;
             }