From 265d2a73d6dabba84405ab2e4b5cd1e75908f9b8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 Sep 2015 13:44:37 +0200 Subject: avformat/assdec: do not drop duplicate subtitles Duplicates are perfectly legitimate with this format. A correct renderer will typically show them stacked. --- libavformat/assdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/assdec.c b/libavformat/assdec.c index 5423c03f14..a9a2efac2e 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -125,6 +125,8 @@ static int ass_read_header(AVFormatContext *s) av_bprint_init(&line, 0, AV_BPRINT_SIZE_UNLIMITED); av_bprint_init(&rline, 0, AV_BPRINT_SIZE_UNLIMITED); + ass->q.keep_duplicates = 1; + for (;;) { int64_t pos = get_line(&line, &tr); int64_t ts_start = AV_NOPTS_VALUE; -- cgit v1.2.3