changeset 19655:bddd0b58efb6

Workaround for live Real streams starting with nonzero pts
author rtogni
date Sun, 03 Sep 2006 18:30:59 +0000
parents ae983f0a1cac
children ba131dd34f63
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sun Sep 03 17:57:41 2006 +0000
+++ b/libmpdemux/video.c	Sun Sep 03 18:30:59 2006 +0000
@@ -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;
     }