From 86e7d20ac2e7cfd6385f84e78117058c1ea0882f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 7 Jan 2015 19:46:16 +0100 Subject: [PATCH] avcodec/aic: Use av_malloc_array Signed-off-by: Michael Niedermayer --- libavcodec/aic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aic.c b/libavcodec/aic.c index 3472301f53..e5e2236ca2 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -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");