projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa805f9
)
Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 16 Jan 2009 15:35:51 +0000
(15:35 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 16 Jan 2009 15:35:51 +0000
(15:35 +0000)
Originally committed as revision 16636 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/aviobuf.c
patch
|
blob
|
history
diff --git
a/libavformat/aviobuf.c
b/libavformat/aviobuf.c
index
defd207
..
b1e1b49
100644
(file)
--- a/
libavformat/aviobuf.c
+++ b/
libavformat/aviobuf.c
@@
-794,7
+794,7
@@
static int url_open_dyn_buf_internal(ByteIOContext **s, int max_packet_size)
return -1;
d = av_mallocz(sizeof(DynBuffer) + io_buffer_size);
if (!d)
- return
-1
;
+ return
AVERROR(ENOMEM)
;
*s = av_mallocz(sizeof(ByteIOContext));
if(!*s) {
av_free(d);