git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b9c4ad
)
Check av_new_stream return value, fixes CID75 RUN2
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 29 May 2008 15:59:14 +0000
(15:59 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 29 May 2008 15:59:14 +0000
(15:59 +0000)
Originally committed as revision 13536 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/daud.c
patch
|
blob
|
history
diff --git
a/libavformat/daud.c
b/libavformat/daud.c
index
ff74d05
..
2598977
100644
(file)
--- 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');