[MPlayer-cvslog] r19661 - trunk/libmpdemux/video.c

rtogni subversion at mplayerhq.hu
Sun Sep 3 20:31:00 CEST 2006


Author: rtogni
Date: Sun Sep  3 20:30:59 2006
New Revision: 19661

Modified:
   trunk/libmpdemux/video.c

Log:
Workaround for live streams starting with nonzero pts


Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	(original)
+++ trunk/libmpdemux/video.c	Sun Sep  3 20:30:59 2006
@@ -610,7 +610,7 @@
           float next_pts = ds_get_next_pts(d_video);
           float d = next_pts > 0 ? next_pts - d_video->pts : d_video->pts - pts1;
 
-          frame_time = (d >= 0) ? d : 0.001;
+          frame_time = (d >= 0 && pts1 > 0) ? d : 0.001;
         }
       break;
     }



More information about the MPlayer-cvslog mailing list