# HG changeset patch # User aurel # Date 1222642733 0 # Node ID 9808dea139a153b4d408c559020fd11747030dd7 # Parent 9315ab7b1c0d70a70863ca6b963de1768485c2f0 matroskadec: set duration only for CODEC_ID_TEXT subtitles diff -r 9315ab7b1c0d -r 9808dea139a1 matroskadec.c --- a/matroskadec.c Sun Sep 28 22:55:28 2008 +0000 +++ b/matroskadec.c Sun Sep 28 22:58:53 2008 +0000 @@ -1621,9 +1621,9 @@ pkt->pts = timecode; pkt->pos = pos; - if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) + if (st->codec->codec_id == CODEC_ID_TEXT) pkt->convergence_duration = duration; - else + else if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE) pkt->duration = duration; if (st->codec->codec_id == CODEC_ID_SSA)