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)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 1 Jan 2013 17:23:54 +0000 (18:23 +0100)
commit42abae1125d778f4f39a049efaa19fe46fdc6672
tree9417ae80ec79e4c2a8c903b8fe7be0a1ec889831
parent436c011a77be8912e0b81f5178e1154b737633d1
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.
(cherry picked from commit c83002a4f8042ccfa0688a9a18e8fa0369c1fda8)
libavcodec/ass_split.c