summaryrefslogtreecommitdiffstats
path: root/libavcodec/aic.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-07 19:46:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-07 19:46:16 +0100
commit86e7d20ac2e7cfd6385f84e78117058c1ea0882f (patch)
treeab306564f74bb39f9b2e37c3495cb936c5f2e73c /libavcodec/aic.c
parent7efabffc2899b76688a40b4bd7c63370eb2d8ca8 (diff)
downloadffmpeg-streaming-86e7d20ac2e7cfd6385f84e78117058c1ea0882f.zip
ffmpeg-streaming-86e7d20ac2e7cfd6385f84e78117058c1ea0882f.tar.gz
avcodec/aic: Use av_malloc_array
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aic.c')
-rw-r--r--libavcodec/aic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aic.c b/libavcodec/aic.c
index 3472301..e5e2236 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");
OpenPOWER on IntegriCloud