From 50f3fabc4807bcae4f7534ec516ad8f60bade8fb Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sun, 14 Jun 2009 23:14:54 +0000 Subject: Print error message when output buffer allocation fails Originally committed as revision 19194 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index dcba31f17a..509be6e5d2 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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; } -- cgit v1.2.3