aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-22 19:11:56 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-22 19:11:56 +0000
commit4969cc0bd84e5f69355f6428cddee22ba61ff897 (patch)
treeb06ce62833390955958a6f1d8d603a75cd96a194 /libavformat/mpegenc.c
parentf2a875db871247f03a1ff2d0670d2f46661c3375 (diff)
downloadffmpeg-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/mpegenc.c')
-rw-r--r--libavformat/mpegenc.c2
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;