matroskadec: don't merge packets which have no timestamp
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 2 Oct 2008 21:14:56 +0000 (21:14 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 2 Oct 2008 21:14:56 +0000 (21:14 +0000)
Originally committed as revision 15528 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroskadec.c

index a0e259c..442a5a0 100644 (file)
@@ -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);