# HG changeset patch # User reimar # Date 1212076754 0 # Node ID 65f48adb4cc96eb097d46ac0372296f20715b755 # Parent c30e9e11baf981aad74387949a57dfcb464e32ce Check av_new_stream return value, fixes CID75 RUN2 diff -r c30e9e11baf9 -r 65f48adb4cc9 daud.c --- a/daud.c Thu May 29 15:40:16 2008 +0000 +++ b/daud.c Thu May 29 15:59:14 2008 +0000 @@ -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');