Print error message when output buffer allocation fails
Originally committed as revision 19194 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2c608fed3a
commit
50f3fabc48
2
ffmpeg.c
2
ffmpeg.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user