summaryrefslogtreecommitdiff
path: root/libavformat/mpl2dec.c
Commit message (Collapse)AuthorAge
* avformat/mpl2dec: skip BOM when probingPaul B Mahol2017-02-21
| | | | | | Fixes #5442. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat/subtitles: forward log context in ff_subtitles_queue_finalize() for ↵Clément Bœsch2015-09-10
| | | | logging
* replace calls to url_feof() with avio_feof()James Almer2014-08-08
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/subtitles: add a next line jumper and use it.Clément Bœsch2013-09-08
| | | | | | | | | | | | This fixes a bunch of possible overread in avformat with the idiom p += strcspn(p, "\n") + 1 (strcspn() can focus on the trailing '\0' if no '\n' is found, so the +1 leads to an overread). Note on lavf/matroskaenc: no extra subtitles.o Makefile dependency is added because only the header is required for ff_subtitles_next_line(). Note on lavf/mpsubdec: code gets slightly complex to avoid an infinite loop in the probing since there is no more forced increment.
* avformat/mpl2dec: handle files with CRLF linebreaks correctlywm42013-09-03
| | | | | | | | Skip the "\r" as normal text. Otherwise it will be the first character of the string passed to sscanf(), which then fill fail to match the timestamps. Signed-off-by: Clément Bœsch <u@pkh.me>
* Replace all occurrences of PRI in sscanf() calls with SCNJames Almer2013-04-10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Add MPL2 subtitles demuxer and decoder.Clément Bœsch2012-12-30