[FFmpeg-cvslog] avformat/assdec: do not drop duplicate subtitles

wm4 git at videolan.org
Mon Sep 21 13:47:21 CEST 2015


ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Mon Sep 21 13:44:37 2015 +0200| [265d2a73d6dabba84405ab2e4b5cd1e75908f9b8] | committer: wm4

avformat/assdec: do not drop duplicate subtitles

Duplicates are perfectly legitimate with this format. A correct
renderer will typically show them stacked.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=265d2a73d6dabba84405ab2e4b5cd1e75908f9b8
---

 libavformat/assdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index 5423c03..a9a2efa 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;



More information about the ffmpeg-cvslog mailing list