Browse Source

Check av_new_stream return value, fixes CID75 RUN2

Originally committed as revision 13536 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Reimar Döffinger 17 years ago
parent
commit
e8bd16a5e1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/daud.c

+ 2
- 0
libavformat/daud.c View File

@@ -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');


Loading…
Cancel
Save