Commit b20d6cf6 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dsddec: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f1c48c3a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment