Mercurial > libavformat.hg
comparison matroskadec.c @ 3952:9808dea139a1 libavformat
matroskadec: set duration only for CODEC_ID_TEXT subtitles
author | aurel |
---|---|
date | Sun, 28 Sep 2008 22:58:53 +0000 |
parents | 9315ab7b1c0d |
children | f1a9ff04eb4b |
comparison
equal
deleted
inserted
replaced
3951:9315ab7b1c0d | 3952:9808dea139a1 |
---|---|
1619 pkt->flags = is_keyframe; | 1619 pkt->flags = is_keyframe; |
1620 pkt->stream_index = st->index; | 1620 pkt->stream_index = st->index; |
1621 | 1621 |
1622 pkt->pts = timecode; | 1622 pkt->pts = timecode; |
1623 pkt->pos = pos; | 1623 pkt->pos = pos; |
1624 if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) | 1624 if (st->codec->codec_id == CODEC_ID_TEXT) |
1625 pkt->convergence_duration = duration; | 1625 pkt->convergence_duration = duration; |
1626 else | 1626 else if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE) |
1627 pkt->duration = duration; | 1627 pkt->duration = duration; |
1628 | 1628 |
1629 if (st->codec->codec_id == CODEC_ID_SSA) | 1629 if (st->codec->codec_id == CODEC_ID_SSA) |
1630 matroska_fix_ass_packet(matroska, pkt, duration); | 1630 matroska_fix_ass_packet(matroska, pkt, duration); |
1631 | 1631 |