diff --git a/libavcodec/aic.c b/libavcodec/aic.c index 5f0eec6b80..61ef6bf9c8 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -471,8 +471,7 @@ static av_cold int aic_decode_init(AVCodecContext *avctx) } } - ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS - * sizeof(*ctx->slice_data)); + ctx->slice_data = av_calloc(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");