avformat/subtitles: make sure we don't drop "duplicated" events from different streams
authorClément Bœsch <u@pkh.me>
Thu, 10 Sep 2015 19:39:13 +0000 (21:39 +0200)
committerClément Bœsch <u@pkh.me>
Thu, 10 Sep 2015 19:39:13 +0000 (21:39 +0200)
libavformat/subtitles.c

index f25aa0e..2f8b066 100644 (file)
@@ -176,6 +176,7 @@ static void drop_dups(FFDemuxSubtitlesQueue *q)
 
         if (q->subs[i].pts        == last->pts &&
             q->subs[i].duration   == last->duration &&
+            q->subs[i].stream_index == last->stream_index &&
             !strcmp(q->subs[i].data, last->data)) {
 
             av_free_packet(&q->subs[i]);