Browse Source

avformat/assdec: do not drop duplicate subtitles

Duplicates are perfectly legitimate with this format. A correct
renderer will typically show them stacked.
tags/n3.0
wm4 10 years ago
parent
commit
265d2a73d6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/assdec.c

+ 2
- 0
libavformat/assdec.c View File

@@ -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;


Loading…
Cancel
Save