OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bffcf2e
)
Handle malloc failure
author
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Mon, 30 Jul 2007 13:58:17 +0000
(13:58 +0000)
committer
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Mon, 30 Jul 2007 13:58:17 +0000
(13:58 +0000)
Originally committed as revision 9833 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/atrac3.c
patch
|
blob
|
history
diff --git
a/libavcodec/atrac3.c
b/libavcodec/atrac3.c
index
ab54c57
..
88d31d4
100644
(file)
--- a/
libavcodec/atrac3.c
+++ b/
libavcodec/atrac3.c
@@
-1047,6
+1047,10
@@
static int atrac3_decode_init(AVCodecContext *avctx)
dsputil_init(&dsp, avctx);
q->pUnits = av_mallocz(sizeof(channel_unit)*q->channels);
+ if (!q->pUnits) {
+ av_free(q->decoded_bytes_buffer);
+ return AVERROR(ENOMEM);
+ }
return 0;
}