Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2013/09/11 19:23:03... | ... |
@@ -180,6 +180,8 @@ static int smacker_read_header(AVFormatContext *s) |
180 | 180 |
smk->indexes[i] = -1; |
181 | 181 |
if (smk->rates[i]) { |
182 | 182 |
ast[i] = avformat_new_stream(s, NULL); |
183 |
+ if (!ast[i]) |
|
184 |
+ return AVERROR(ENOMEM); |
|
183 | 185 |
smk->indexes[i] = ast[i]->index; |
184 | 186 |
ast[i]->codec->codec_type = AVMEDIA_TYPE_AUDIO; |
185 | 187 |
if (smk->aflags[i] & SMK_AUD_BINKAUD) { |