summaryrefslogtreecommitdiff
path: root/libavformat/swfenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-21 23:12:41 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-21 23:12:41 +0000
commitec6b02b6fd32efcce159fab62a1ffe8ce7d87a30 (patch)
treee2557a6c42fb7abbd0bffc074ad8c89f4527dc5b /libavformat/swfenc.c
parent24dc7776ff4452764d0365b12d0728153f879cf8 (diff)
downloadffmpeg-ec6b02b6fd32efcce159fab62a1ffe8ce7d87a30.tar.gz
check av_fifo_alloc return
Originally committed as revision 18892 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swfenc.c')
-rw-r--r--libavformat/swfenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index af5da4ab3f..8545ea768a 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -193,6 +193,8 @@ static int swf_write_header(AVFormatContext *s)
}
swf->audio_enc = enc;
swf->audio_fifo= av_fifo_alloc(AUDIO_FIFO_SIZE);
+ if (!swf->audio_fifo)
+ return AVERROR(ENOMEM);
} else {
av_log(s, AV_LOG_ERROR, "SWF muxer only supports MP3\n");
return -1;