summaryrefslogtreecommitdiff
path: root/libavformat/daud.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-05-29 15:59:14 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-05-29 15:59:14 +0000
commite8bd16a5e1d0df6cfe5900621a453a74c6540f46 (patch)
tree721a9c72cefbaaa7ca29737e4a77a1e9ec12a7b3 /libavformat/daud.c
parent8b9c4ad2374c6438a967a65d1ad779f47a3f30e2 (diff)
downloadffmpeg-e8bd16a5e1d0df6cfe5900621a453a74c6540f46.tar.gz
Check av_new_stream return value, fixes CID75 RUN2
Originally committed as revision 13536 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/daud.c')
-rw-r--r--libavformat/daud.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/daud.c b/libavformat/daud.c
index ff74d05025..25989773a1 100644
--- a/libavformat/daud.c
+++ b/libavformat/daud.c
@@ -22,6 +22,8 @@
static int daud_header(AVFormatContext *s, AVFormatParameters *ap) {
AVStream *st = av_new_stream(s, 0);
+ if (!st)
+ return AVERROR(ENOMEM);
st->codec->codec_type = CODEC_TYPE_AUDIO;
st->codec->codec_id = CODEC_ID_PCM_S24DAUD;
st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');