aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 19:45:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-16 19:45:43 +0200
commit58a53123bae90798155bd11a0db680b334abf4e4 (patch)
tree6742debabf3f55ca7c83472ec758f57ceac40d3b /libavcodec/vble.c
parent7999b41d480832ee49270acd1c4165ba82164592 (diff)
downloadffmpeg-58a53123bae90798155bd11a0db680b334abf4e4.tar.gz
avcodec/vble: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r--libavcodec/vble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index a8c71ed9c9..ed08b832a9 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -189,7 +189,7 @@ static av_cold int vble_decode_init(AVCodecContext *avctx)
ctx->size = avpicture_get_size(avctx->pix_fmt,
avctx->width, avctx->height);
- ctx->val = av_malloc(ctx->size * sizeof(*ctx->val));
+ ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val));
if (!ctx->val) {
av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n");