Commit fae59bac authored by bcoudurier's avatar bcoudurier

check av_fifo_alloc return

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18892 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0c2f3482
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment