Browse Source

avcodec/vble: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
58a53123ba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vble.c

+ 1
- 1
libavcodec/vble.c View File

@@ -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");


Loading…
Cancel
Save