mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dsddec: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f1c48c3a4d
commit
b20d6cf603
|
@ -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…
Reference in New Issue