Commit bf4944ad authored by takis's avatar takis

Handle malloc failure


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9833 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0614f908
......@@ -1047,6 +1047,10 @@ static int atrac3_decode_init(AVCodecContext *avctx)
dsputil_init(&dsp, avctx);
q->pUnits = av_mallocz(sizeof(channel_unit)*q->channels);
if (!q->pUnits) {
av_free(q->decoded_bytes_buffer);
return AVERROR(ENOMEM);
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment