Commit 21a115d1 authored by Aurelien Jacobs's avatar Aurelien Jacobs

matroskadec: don't merge packets which have no timestamp

Originally committed as revision 15528 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 72ab9d7f
......@@ -1640,6 +1640,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
matroska_fix_ass_packet(matroska, pkt, duration);
if (matroska->prev_pkt &&
timecode != AV_NOPTS_VALUE &&
matroska->prev_pkt->pts == timecode &&
matroska->prev_pkt->stream_index == st->index)
matroska_merge_packets(matroska->prev_pkt, pkt);
......
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