git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c608fe
)
Print error message when output buffer allocation fails
author
Måns Rullgård
<mans@mansr.com>
Sun, 14 Jun 2009 23:14:54 +0000
(23:14 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sun, 14 Jun 2009 23:14:54 +0000
(23:14 +0000)
Originally committed as revision 19194 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
dcba31f
..
509be6e
100644
(file)
--- 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;
}