Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 17:06:14 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 17:06:14 +0400
commitf2407407121f5439fc32b733c2ad9a2bd94e766a (patch)
tree2ca04f148993bb7c13424a4df0355721c841bbc1 /libavfilter/af_amix.c
parenta62814abf45e8ec15f3ff7bd15d13aae8d3ed6e5 (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 7140b6c744..1eef70d8c4 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -249,7 +249,7 @@ static int config_output(AVFilterLink *outlink)
memset(s->input_state, INPUT_ON, s->nb_inputs);
s->active_inputs = s->nb_inputs;
- s->input_scale = av_mallocz(s->nb_inputs * sizeof(*s->input_scale));
+ s->input_scale = av_mallocz_array(s->nb_inputs, sizeof(*s->input_scale));
if (!s->input_scale)
return AVERROR(ENOMEM);
s->scale_norm = s->active_inputs;