Browse Source

avcodec/dsddec: use av_malloc_array()

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

+ 1
- 1
libavcodec/dsddec.c View File

@@ -95,7 +95,7 @@ static av_cold int decode_init(AVCodecContext *avctx)

init_static_data();

s = av_malloc(sizeof(DSDContext) * avctx->channels);
s = av_malloc_array(sizeof(DSDContext), avctx->channels);
if (!s)
return AVERROR(ENOMEM);



Loading…
Cancel
Save