Skip to content
Snippets Groups Projects
Commit 34fb84a9 authored by foo86's avatar foo86
Browse files

avcodec/dcaadpcm: check for av_malloc() failure

Fixes CID 1409915.
parent f2c11b93
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,9 @@ av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s)
return -1;
s->private_data = av_malloc(sizeof(premultiplied_coeffs) * DCA_ADPCM_VQCODEBOOK_SZ);
if (!s->private_data)
return AVERROR(ENOMEM);
precalc(s->private_data);
return 0;
}
......
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