Commit 50f3fabc authored by Måns Rullgård's avatar Måns Rullgård

Print error message when output buffer allocation fails

Originally committed as revision 19194 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2c608fed
......@@ -1930,6 +1930,8 @@ static int av_encode(AVFormatContext **output_files,
if (!bit_buffer)
bit_buffer = av_malloc(bit_buffer_size);
if (!bit_buffer) {
fprintf(stderr, "Cannot allocate %d bytes output buffer\n",
bit_buffer_size);
ret = AVERROR(ENOMEM);
goto fail;
}
......
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