aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwm42015-09-21 13:44:37 +0200
committerwm42015-09-21 13:44:37 +0200
commit265d2a73d6dabba84405ab2e4b5cd1e75908f9b8 (patch)
treeb6070b07fcf4faf1b172d1f0fae639fafa297da4
parent5c93e57f5c07b52f04363c178c4fc1892c0d71aa (diff)
avformat/assdec: do not drop duplicate subtitles
Duplicates are perfectly legitimate with this format. A correct renderer will typically show them stacked.
-rw-r--r--libavformat/assdec.c2
1 files changed, 2 insertions, 0 deletions
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;