Commit d52c2e57 authored by mru's avatar mru

Print error message when output buffer allocation fails

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19194 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bdd48f6
...@@ -1930,6 +1930,8 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1930,6 +1930,8 @@ static int av_encode(AVFormatContext **output_files,
if (!bit_buffer) if (!bit_buffer)
bit_buffer = av_malloc(bit_buffer_size); bit_buffer = av_malloc(bit_buffer_size);
if (!bit_buffer) { if (!bit_buffer) {
fprintf(stderr, "Cannot allocate %d bytes output buffer\n",
bit_buffer_size);
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; 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