avfilter/af_amix: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Apr 2015 13:04:38 +0000 (15:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Apr 2015 13:04:38 +0000 (15:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_amix.c

index fd9d135..ff9af3d 100644 (file)
@@ -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);