Commit 86e7d20a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aic: Use av_malloc_array

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7efabffc
......@@ -448,7 +448,7 @@ static av_cold int aic_decode_init(AVCodecContext *avctx)
}
}
ctx->slice_data = av_malloc(ctx->slice_width * AIC_BAND_COEFFS
ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS
* sizeof(*ctx->slice_data));
if (!ctx->slice_data) {
av_log(avctx, AV_LOG_ERROR, "Error allocating slice buffer\n");
......
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