summaryrefslogtreecommitdiffstats
path: root/libavcodec/ass_split.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/ass_split: fix a memory leak defect when realloc failsFan Gang2018-12-141-3/+3
| | | | Fixes #7019.
* avcodec/ass_split: Change order of operations in ass_split_section()Michael Niedermayer2016-11-171-1/+1
| | | | | | | | | This matches the other branch Fixes out of array read Fixes: 4d142ca76d39fe685effcf5017098723/asan_heap-oob_31ae824_8611_348fdb64f9009b63c8a8eae9a0e497c5.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ass_split: reindentRodger Combs2016-09-121-17/+17
|
* ass_split: fix handling of streams with no [Events] or Format: lineRodger Combs2016-09-121-9/+27
|
* lavc: allow subtitle text format to be ASS without timingClément Bœsch2016-02-261-0/+49
|
* avcodec/ass_split: Fix null pointer dereference in ff_ass_style_get()Michael Niedermayer2016-01-201-1/+1
| | | | | | | | Fixes: 55d71971da50365d542ed14b65565fe1/signal_sigsegv_4765a4_8499_f146af090a94f591d6254515c7700ef5.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ass_split: check ASSSplitContext allocClément Bœsch2015-06-131-0/+2
|
* avcodec/ass_split: use *alloc_array()Michael Niedermayer2015-01-091-3/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ass_split: realign after addition of new fieldsClément Bœsch2014-10-151-51/+51
|
* avcodec/ass_split: assume default order when "Format:" line is not foundClément Bœsch2014-10-151-1/+25
| | | | | Fixes the decoding of the ASS stream in a mkv from a fansub release from Coalgirls.
* avcodec/ass_split: extend recognized fields in ASS splitterClément Bœsch2014-10-151-1/+30
| | | | This simplifies the logic for the fix in the next commit.
* ass_split: fix out of array access in ass_split()Michael Niedermayer2013-01-111-3/+6
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ass_split: fix out of array accessMichael Niedermayer2013-01-111-1/+3
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc/ass_split: check for NULL pointer in ff_ass_split_override_codes().Clément Bœsch2012-12-301-1/+1
| | | | | | | | | | | This is consistent with the other ff_ass_split_* functions. It also fixes a crash when trying to split a dialog with text=NULL (which seems to happen when the text of the dialog is empty); basically, this commit fixes crashes when trying to encode an empty text subtitle dialog (see subrip and mov_text encoders). Fixes Ticket2048.
* ass_split_section: dont overread arrayMichael Niedermayer2012-12-141-1/+2
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc/ass_split: add ff_ prefix to ass_style_get().Clément Bœsch2012-09-161-1/+1
|
* ass subtitles: Fix valgrind warnings.Philip Langdale2012-08-051-1/+3
| | | | | | | | | | | | | We're now running some of this code through valgrind for the first time, and a few warnings showed up stemming from two problems. 1) The ASS code assumes the subtitle header is null terminated, but it wasn't, and passing the size down doesn't look like fun, so I added a terminator 2) The code wasn't freeing all of its state. Signed-off-by: Philip Langdale <philipl@overt.org>
* ass_split: accept files with only \n and no \r.Nicolas George2012-03-071-1/+1
| | | | | | The +1 is there to skip the ','. With \r\n, the +1 skips the \r but that is ok. With only \n, the +1 skips it and all hell breaks loose.
* add SubRip encoderAurelien Jacobs2011-03-281-0/+468
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
OpenPOWER on IntegriCloud