fail if stream fifo could not be allocated
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 22 May 2009 19:11:56 +0000 (19:11 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 22 May 2009 19:11:56 +0000 (19:11 +0000)
Originally committed as revision 18897 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegenc.c

index cd7be89..b7bb69b 100644 (file)
@@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext *ctx)
             return -1;
         }
         stream->fifo= av_fifo_alloc(16);
             return -1;
         }
         stream->fifo= av_fifo_alloc(16);
+        if (!stream->fifo)
+            goto fail;
     }
     bitrate = 0;
     audio_bitrate = 0;
     }
     bitrate = 0;
     audio_bitrate = 0;