Mercurial > libavformat.hg
diff matroskadec.c @ 3892:8f1928b41f45 libavformat
matroska: subtitle display duration must be stored in pkt->convergence_duration
author | aurel |
---|---|
date | Thu, 04 Sep 2008 23:08:19 +0000 |
parents | 33a94467ea2b |
children | 30c8c9f53b9d |
line wrap: on
line diff
--- a/matroskadec.c Thu Sep 04 22:35:05 2008 +0000 +++ b/matroskadec.c Thu Sep 04 23:08:19 2008 +0000 @@ -1583,7 +1583,10 @@ pkt->pts = timecode; pkt->pos = pos; - pkt->duration = duration; + if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) + pkt->convergence_duration = duration; + else + pkt->duration = duration; dynarray_add(&matroska->packets, &matroska->num_packets, pkt); }