diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-09-21 14:42:48 +0300 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2015-09-21 14:42:48 +0300 |
commit | c216324a7f958f09a7ee68c5cca28fdd166fba9d (patch) | |
tree | 0c244894c03ec7e117bb3876ea23efa19c06175f /libavformat/subtitles.c | |
parent | a47ad06baf6c0db6d47a5531d6d4ee0511f44eac (diff) |
avformat/subtitles: make dropping duplicate events optional
Diffstat (limited to 'libavformat/subtitles.c')
-rw-r--r-- | libavformat/subtitles.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/subtitles.c b/libavformat/subtitles.c index 192043f917..bb8976682d 100644 --- a/libavformat/subtitles.c +++ b/libavformat/subtitles.c @@ -204,7 +204,8 @@ void ff_subtitles_queue_finalize(void *log_ctx, FFDemuxSubtitlesQueue *q) if (q->subs[i].duration == -1 && i < q->nb_subs - 1) q->subs[i].duration = q->subs[i + 1].pts - q->subs[i].pts; - drop_dups(log_ctx, q); + if (!q->keep_duplicates) + drop_dups(log_ctx, q); } int ff_subtitles_queue_read_packet(FFDemuxSubtitlesQueue *q, AVPacket *pkt) |