changeset 19695:782364fc00c4

Use better resolution for pts computation. Fixes desync in Real live streams with huge pts values
author rtogni
date Tue, 05 Sep 2006 21:53:09 +0000
parents d32f43ae7f5b
children 0b07e95ca082
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Tue Sep 05 20:18:42 2006 +0000
+++ b/libmpdemux/video.c	Tue Sep 05 21:53:09 2006 +0000
@@ -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;