diff options
author | Måns Rullgård <mans@mansr.com> | 2009-06-14 23:14:54 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-06-14 23:14:54 +0000 |
commit | 50f3fabc4807bcae4f7534ec516ad8f60bade8fb (patch) | |
tree | 783932df000145ed564d523b35422d0651d34cf1 | |
parent | 2c608fed3a7bee865bc5bce31de71fa186d5bc0a (diff) | |
download | ffmpeg-50f3fabc4807bcae4f7534ec516ad8f60bade8fb.tar.gz |
Print error message when output buffer allocation fails
Originally committed as revision 19194 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |