]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg.c
wavdec: RIFX file format support
[ffmpeg] / ffmpeg.c
index d38c90490c5611aa5aa51077fa8636dfa07a2d8d..9f29eac7b1673480771dc4d0b099515050f27167 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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