Commit ec6b02b6 authored by Baptiste Coudurier's avatar Baptiste Coudurier

check av_fifo_alloc return

Originally committed as revision 18892 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 24dc7776
......@@ -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