[MPlayer-cvslog] r31642 - trunk/libmpdemux/demux_lavf.c

aurel subversion at mplayerhq.hu
Tue Jul 6 11:02:37 CEST 2010


Author: aurel
Date: Tue Jul  6 11:02:37 2010
New Revision: 31642

Log:
stricter check for convergence_duration validity, avoid using meaningless values

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Mon Jul  5 23:34:51 2010	(r31641)
+++ trunk/libmpdemux/demux_lavf.c	Tue Jul  6 11:02:37 2010	(r31642)
@@ -634,7 +634,7 @@ static int demux_lavf_fill_buffer(demuxe
     if(pkt.pts != AV_NOPTS_VALUE){
         dp->pts=pkt.pts * av_q2d(priv->avfc->streams[id]->time_base);
         priv->last_pts= dp->pts * AV_TIME_BASE;
-        if(pkt.convergence_duration)
+        if(pkt.flags & PKT_FLAG_KEY && pkt.convergence_duration > 0)
             dp->endpts = dp->pts + pkt.convergence_duration * av_q2d(priv->avfc->streams[id]->time_base);
     }
     dp->pos=demux->filepos;


More information about the MPlayer-cvslog mailing list