avcodec/dsddec: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-04-22 19:57:21 +02:00
parent f1c48c3a4d
commit b20d6cf603
1 changed files with 1 additions and 1 deletions

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