mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
avfilter/af_amix: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8a8a1cce6c
commit
34bddf443c
@ -232,7 +232,7 @@ static int config_output(AVFilterLink *outlink)
|
||||
if (!s->frame_list)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
s->fifos = av_mallocz(s->nb_inputs * sizeof(*s->fifos));
|
||||
s->fifos = av_mallocz_array(s->nb_inputs, sizeof(*s->fifos));
|
||||
if (!s->fifos)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user