[FFmpeg-cvslog] r13536 - trunk/libavformat/daud.c
reimar
subversion
Thu May 29 17:59:15 CEST 2008
Author: reimar
Date: Thu May 29 17:59:14 2008
New Revision: 13536
Log:
Check av_new_stream return value, fixes CID75 RUN2
Modified:
trunk/libavformat/daud.c
Modified: trunk/libavformat/daud.c
==============================================================================
--- trunk/libavformat/daud.c (original)
+++ trunk/libavformat/daud.c Thu May 29 17:59:14 2008
@@ -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');
More information about the ffmpeg-cvslog
mailing list