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:
934b910
)
Check whether the memory allocation for extradata succeeded. Fixes issue 472.
author
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Sun, 1 Jun 2008 16:25:05 +0000
(16:25 +0000)
committer
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Sun, 1 Jun 2008 16:25:05 +0000
(16:25 +0000)
Originally committed as revision 13603 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rmdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rmdec.c
b/libavformat/rmdec.c
index
c4bda1f
..
a2aa9c8
100644
(file)
--- a/
libavformat/rmdec.c
+++ b/
libavformat/rmdec.c
@@
-235,6
+235,8
@@
ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st)
return -1;
}
st->codec->extradata= av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ if (!st->codec->extradata)
+ return AVERROR(ENOMEM);
get_buffer(pb, st->codec->extradata, st->codec->extradata_size);
// av_log(NULL, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);