changeset 27493:a126c38cb1c7

lavf: the subtitles display duration is stored in pkt.convergence_duration
author aurel
date Thu, 04 Sep 2008 23:34:27 +0000
parents a219635ccfa7
children 89971b14c335
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);