Commit 3f17b0ab authored by bcoudurier's avatar bcoudurier

fail if stream fifo could not be allocated

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18897 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 005e0a9f
...@@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext *ctx) ...@@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext *ctx)
return -1; return -1;
} }
stream->fifo= av_fifo_alloc(16); stream->fifo= av_fifo_alloc(16);
if (!stream->fifo)
goto fail;
} }
bitrate = 0; bitrate = 0;
audio_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