mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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();
|
init_static_data();
|
||||||
|
|
||||||
s = av_malloc(sizeof(DSDContext) * avctx->channels);
|
s = av_malloc_array(sizeof(DSDContext), avctx->channels);
|
||||||
if (!s)
|
if (!s)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user