Skip to content
Snippets Groups Projects
Commit e8bd16a5 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Check av_new_stream return value, fixes CID75 RUN2

Originally committed as revision 13536 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8b9c4ad2
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
static int daud_header(AVFormatContext *s, AVFormatParameters *ap) { static int daud_header(AVFormatContext *s, AVFormatParameters *ap) {
AVStream *st = av_new_stream(s, 0); AVStream *st = av_new_stream(s, 0);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_type = CODEC_TYPE_AUDIO;
st->codec->codec_id = CODEC_ID_PCM_S24DAUD; st->codec->codec_id = CODEC_ID_PCM_S24DAUD;
st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd'); st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment