Browse Source

avformat/assdec: allow ASS files starting with empty lines

See https://github.com/mpv-player/mpv/issues/2506
tags/n3.0
Clément Bœsch Clément Bœsch 10 years ago
parent
commit
6679fcd419
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/assdec.c

+ 3
- 0
libavformat/assdec.c View File

@@ -39,6 +39,9 @@ static int ass_probe(AVProbeData *p)
FFTextReader tr;
ff_text_init_buf(&tr, p->buf, p->buf_size);

while (ff_text_peek_r8(&tr) == '\r' || ff_text_peek_r8(&tr) == '\n')
ff_text_r8(&tr);

ff_text_read(&tr, buf, sizeof(buf));

if (!memcmp(buf, "[Script Info]", 13))


Loading…
Cancel
Save