[MPlayer-cvslog] r27525 - trunk/libmpdemux/demux_lavf.c
aurel
subversion at mplayerhq.hu
Fri Sep 5 01:34:27 CEST 2008
Author: aurel
Date: Fri Sep 5 01:34:27 2008
New Revision: 27525
Log:
lavf: the subtitles display duration is stored in pkt.convergence_duration
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c (original)
+++ trunk/libmpdemux/demux_lavf.c Fri Sep 5 01:34:27 2008
@@ -595,8 +595,8 @@ 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.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);
More information about the MPlayer-cvslog
mailing list