diff options
author | Kent Mein <mein@cs.umn.edu> | 2009-08-25 19:58:21 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-08-25 19:58:21 +0000 |
commit | b01c7b756e98eb6767d0947a4a42e43f1b51bcdc (patch) | |
tree | 762d96d093df36620f210a66fb5867019d13c0cd /libavformat/r3d.c | |
parent | 7305d97f04f95e6b6717c5bba5cf6b350824094e (diff) | |
download | ffmpeg-b01c7b756e98eb6767d0947a4a42e43f1b51bcdc.tar.gz |
check av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu
Originally committed as revision 19701 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/r3d.c')
-rw-r--r-- | libavformat/r3d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c index b645d928a0..4d2b469677 100644 --- 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; |