diff options
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r-- | libavcodec/vble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c index a8c71ed..ed08b83 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"); |