Commit 4969cc0b authored by Baptiste Coudurier's avatar Baptiste Coudurier

fail if stream fifo could not be allocated

Originally committed as revision 18897 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f2a875db
......@@ -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;
......
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