Commit 7d02606e authored by aurel's avatar aurel

matroskadec: set duration only for CODEC_ID_TEXT subtitles

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15453 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 89542751
......@@ -1621,9 +1621,9 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment