OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d4c439
)
avio: check AVIOContext malloc failure
author
Can Wu
<wu.canus@gmail.com>
Sat, 14 May 2011 09:27:31 +0000
(17:27 +0800)
committer
Anton Khirnov
<anton@khirnov.net>
Sat, 21 May 2011 11:42:50 +0000
(13:42 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/aviobuf.c
patch
|
blob
|
history
diff --git
a/libavformat/aviobuf.c
b/libavformat/aviobuf.c
index
2b14d48
..
fa63ddf
100644
(file)
--- a/
libavformat/aviobuf.c
+++ b/
libavformat/aviobuf.c
@@
-113,6
+113,8
@@
AVIOContext *avio_alloc_context(
int64_t (*seek)(void *opaque, int64_t offset, int whence))
{
AVIOContext *s = av_mallocz(sizeof(AVIOContext));
+ if (!s)
+ return NULL;
ffio_init_context(s, buffer, buffer_size, write_flag, opaque,
read_packet, write_packet, seek);
return s;