diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-07 19:46:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-07 19:46:16 +0100 |
commit | 86e7d20ac2e7cfd6385f84e78117058c1ea0882f (patch) | |
tree | ab306564f74bb39f9b2e37c3495cb936c5f2e73c /libavcodec/aic.c | |
parent | 7efabffc2899b76688a40b4bd7c63370eb2d8ca8 (diff) | |
download | ffmpeg-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.c | 2 |
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"); |