lavc/ass_split: check for NULL pointer in ff_ass_split_override_codes().
authorClément Bœsch <ubitux@gmail.com>
Sun, 30 Dec 2012 05:53:48 +0000 (06:53 +0100)
committerClément Bœsch <ubitux@gmail.com>
Sun, 30 Dec 2012 05:57:34 +0000 (06:57 +0100)
commitc83002a4f8042ccfa0688a9a18e8fa0369c1fda8
treeb8f0af6fc4a8201a397c26fd05b92f1f2340ffc8
parentb113d4a83c82c4dcf51945c2a701a6dd54126c27
lavc/ass_split: check for NULL pointer in ff_ass_split_override_codes().

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.
libavcodec/ass_split.c