[SCM] libav/experimental: Check av_new_stream return value, fixes CID75 RUN2
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:22:29 UTC 2013
The following commit has been merged in the experimental branch:
commit e8bd16a5e1d0df6cfe5900621a453a74c6540f46
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date: Thu May 29 15:59:14 2008 +0000
Check av_new_stream return value, fixes CID75 RUN2
Originally committed as revision 13536 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/daud.c b/libavformat/daud.c
index ff74d05..2598977 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');
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list