# HG changeset patch # User aurel # Date 1220571267 0 # Node ID a126c38cb1c7dc97e31ebd3324f32dc0738623e3 # Parent a219635ccfa7cb5b9cb9bebeec78cb063feb7685 lavf: the subtitles display duration is stored in pkt.convergence_duration diff -r a219635ccfa7 -r a126c38cb1c7 libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Thu Sep 04 22:58:16 2008 +0000 +++ b/libmpdemux/demux_lavf.c Thu Sep 04 23:34:27 2008 +0000 @@ -595,8 +595,8 @@ 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.duration) - dp->endpts = dp->pts + pkt.duration * av_q2d(priv->avfc->streams[id]->time_base); + if(pkt.convergence_duration) + dp->endpts = dp->pts + pkt.convergence_duration * av_q2d(priv->avfc->streams[id]->time_base); } dp->pos=demux->filepos; dp->flags= !!(pkt.flags&PKT_FLAG_KEY);