projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7305d97
)
check av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu
author
Kent Mein
<mein@cs.umn.edu>
Tue, 25 Aug 2009 19:58:21 +0000
(19:58 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Tue, 25 Aug 2009 19:58:21 +0000
(19:58 +0000)
Originally committed as revision 19701 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/r3d.c
patch
|
blob
|
history
diff --git
a/libavformat/r3d.c
b/libavformat/r3d.c
index
b645d92
..
4d2b469
100644
(file)
--- a/
libavformat/r3d.c
+++ b/
libavformat/r3d.c
@@
-87,6
+87,8
@@
static int r3d_read_red1(AVFormatContext *s)
dprintf(s, "audio channels %d\n", tmp);
if (tmp > 0) {
AVStream *ast = av_new_stream(s, 1);
+ if (!ast)
+ return AVERROR(ENOMEM);
ast->codec->codec_type = CODEC_TYPE_AUDIO;
ast->codec->codec_id = CODEC_ID_PCM_S32BE;
ast->codec->channels = tmp;