diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-22 19:11:56 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-22 19:11:56 +0000 |
commit | 4969cc0bd84e5f69355f6428cddee22ba61ff897 (patch) | |
tree | b06ce62833390955958a6f1d8d603a75cd96a194 /libavformat | |
parent | f2a875db871247f03a1ff2d0670d2f46661c3375 (diff) | |
download | ffmpeg-4969cc0bd84e5f69355f6428cddee22ba61ff897.tar.gz |
fail if stream fifo could not be allocated
Originally committed as revision 18897 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index cd7be899f4..b7bb69b91d 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext *ctx) return -1; } stream->fifo= av_fifo_alloc(16); + if (!stream->fifo) + goto fail; } bitrate = 0; audio_bitrate = 0; |