summaryrefslogtreecommitdiff
path: root/libavcodec/ass_split.c
Commit message (Collapse)AuthorAge
* ass_split: fix out of array access in ass_split()Michael Niedermayer2013-01-11
| | | | | 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-11
| | | | | 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-30
| | | | | | | | | | | 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-14
| | | | | 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-16
|
* ass subtitles: Fix valgrind warnings.Philip Langdale2012-08-05
| | | | | | | | | | | | | 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-07
| | | | | | 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-28
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>