Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-07 21:46:16 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-07 21:46:16 +0300
commit86e7d20ac2e7cfd6385f84e78117058c1ea0882f (patch)
treeab306564f74bb39f9b2e37c3495cb936c5f2e73c /libavcodec/aic.c
parent7efabffc2899b76688a40b4bd7c63370eb2d8ca8 (diff)
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 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");