1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

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

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