[MPlayer-cvslog] r20235 - trunk/libmpdemux/demux_real.c

rtogni subversion at mplayerhq.hu
Sun Oct 15 15:35:46 CEST 2006


Author: rtogni
Date: Sun Oct 15 15:35:46 2006
New Revision: 20235

Modified:
   trunk/libmpdemux/demux_real.c

Log:
Fix timestamps for streams where kf_base gets negative


Modified: trunk/libmpdemux/demux_real.c
==============================================================================
--- trunk/libmpdemux/demux_real.c	(original)
+++ trunk/libmpdemux/demux_real.c	Sun Oct 15 15:35:46 2006
@@ -82,7 +82,7 @@
     int		current_vpacket;
     
     // timestamp correction:
-    unsigned int	kf_base;// timestamp of the prev. video keyframe
+    int64_t		kf_base;// timestamp of the prev. video keyframe
     unsigned int	kf_pts;	// timestamp of next video keyframe
     unsigned int	a_pts;	// previous audio timestamp
     double	v_pts;  // previous video timestamp
@@ -518,7 +518,7 @@
 //    if(pict_type==0)
     if(pict_type<=1){
       // I frame, sync timestamps:
-      priv->kf_base=timestamp-kf;
+      priv->kf_base=(int64_t)timestamp-kf;
       mp_msg(MSGT_DEMUX, MSGL_DBG2,"\nTS: base=%08X\n",priv->kf_base);
       kf=timestamp;
     } else {



More information about the MPlayer-cvslog mailing list