# HG changeset patch # User aurel # Date 1278406957 0 # Node ID d918dc8c833cba5a8c608977488eab5140828896 # Parent c90f270458aea3c9b6d757724e81e2eba3b35232 stricter check for convergence_duration validity, avoid using meaningless values diff -r c90f270458ae -r d918dc8c833c libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Mon Jul 05 21:34:51 2010 +0000 +++ b/libmpdemux/demux_lavf.c Tue Jul 06 09:02:37 2010 +0000 @@ -634,7 +634,7 @@ 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;