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

rtogni subversion at mplayerhq.hu
Tue Sep 5 23:53:09 CEST 2006


Author: rtogni
Date: Tue Sep  5 23:53:09 2006
New Revision: 19701

Modified:
   trunk/libmpdemux/video.c

Log:
Use better resolution for pts computation.
Fixes desync in Real live streams with huge pts values


Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	(original)
+++ trunk/libmpdemux/video.c	Tue Sep  5 23:53:09 2006
@@ -607,7 +607,7 @@
       break;
       case DEMUXER_TYPE_REAL:
         {
-          float next_pts = ds_get_next_pts(d_video);
+          double 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 && pts1 > 0) ? d : 0.001;



More information about the MPlayer-cvslog mailing list