mirror of https://github.com/mpv-player/mpv
lavf: the subtitles display duration is stored in pkt.convergence_duration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27525 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a0d85f9301
commit
237ae0ac8a
|
@ -595,8 +595,8 @@ static int demux_lavf_fill_buffer(demuxer_t *demux, demux_stream_t *dsds){
|
||||||
if(pkt.pts != AV_NOPTS_VALUE){
|
if(pkt.pts != AV_NOPTS_VALUE){
|
||||||
dp->pts=pkt.pts * av_q2d(priv->avfc->streams[id]->time_base);
|
dp->pts=pkt.pts * av_q2d(priv->avfc->streams[id]->time_base);
|
||||||
priv->last_pts= dp->pts * AV_TIME_BASE;
|
priv->last_pts= dp->pts * AV_TIME_BASE;
|
||||||
if(pkt.duration)
|
if(pkt.convergence_duration)
|
||||||
dp->endpts = dp->pts + pkt.duration * av_q2d(priv->avfc->streams[id]->time_base);
|
dp->endpts = dp->pts + pkt.convergence_duration * av_q2d(priv->avfc->streams[id]->time_base);
|
||||||
}
|
}
|
||||||
dp->pos=demux->filepos;
|
dp->pos=demux->filepos;
|
||||||
dp->flags= !!(pkt.flags&PKT_FLAG_KEY);
|
dp->flags= !!(pkt.flags&PKT_FLAG_KEY);
|
||||||
|
|
Loading…
Reference in New Issue