changeset 3971:eed7b7cb02a9 libavformat

matroskadec: don't merge packets which have no timestamp
author aurel
date Thu, 02 Oct 2008 21:14:56 +0000
parents c265c84caa81
children c7a831579a13
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Thu Oct 02 20:01:13 2008 +0000
+++ b/matroskadec.c	Thu Oct 02 21:14:56 2008 +0000
@@ -1640,6 +1640,7 @@
                     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);