Commit 41c1ccc3 authored by David Conrad's avatar David Conrad Committed by Aurelien Jacobs
Browse files

matroskadec: merge only SSA packets together

fixes issue 2052
patch by David Conrad

Originally committed as revision 24004 to svn://
parent 7a617a86
......@@ -1776,7 +1776,8 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
if (matroska->prev_pkt &&
timecode != AV_NOPTS_VALUE &&
matroska->prev_pkt->pts == timecode &&
matroska->prev_pkt->stream_index == st->index)
matroska->prev_pkt->stream_index == st->index &&
st->codec->codec_id == CODEC_ID_SSA)
matroska_merge_packets(matroska->prev_pkt, pkt);
else {
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