summaryrefslogtreecommitdiff
path: root/libavfilter/af_amix.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-06 15:04:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-06 15:04:38 +0200
commit34bddf443c6fb1f02d73746cccf8e7b3f9f0dbb2 (patch)
tree68646356aab2564b34283a44c1511d76d9884ff4 /libavfilter/af_amix.c
parent8a8a1cce6c3a0f4681ff80fc461be82b014d97e8 (diff)
avfilter/af_amix: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index fd9d13556f..ff9af3d0e6 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -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);