Skip to content
Snippets Groups Projects
Commit d2f9aefb authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg: Check for subtitle_out malloc failure

parent 4f1923a9
No related branches found
No related tags found
No related merge requests found
......@@ -819,6 +819,10 @@ static void do_subtitle_out(AVFormatContext *s,
if (!subtitle_out) {
subtitle_out = av_malloc(subtitle_out_max_size);
if (!subtitle_out) {
av_log(NULL, AV_LOG_FATAL, "Failed to allocate subtitle_out\n");
exit_program(1);
}
}
/* Note: DVB subtitle need one packet to draw them and one other
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment