summaryrefslogtreecommitdiff
path: root/libavfilter/af_aphaser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 15:05:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 15:05:33 +0200
commit1c7ac94cdf3fdf14842d283d472bafff79c3bdd5 (patch)
tree37d107dd2a0c14ee20bc8a4b7b7169e4cc3b718f /libavfilter/af_aphaser.c
parent3a10bf93b5ba7106bb4f791be0fa5e982757b83f (diff)
avfilter/af_aphaser: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_aphaser.c')
-rw-r--r--libavfilter/af_aphaser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_aphaser.c b/libavfilter/af_aphaser.c
index 0fc45eab43..119e1a385e 100644
--- a/libavfilter/af_aphaser.c
+++ b/libavfilter/af_aphaser.c
@@ -269,7 +269,7 @@ static int config_output(AVFilterLink *outlink)
p->delay_buffer_length = p->delay * 0.001 * inlink->sample_rate + 0.5;
p->delay_buffer = av_calloc(p->delay_buffer_length, sizeof(*p->delay_buffer) * inlink->channels);
p->modulation_buffer_length = inlink->sample_rate / p->speed + 0.5;
- p->modulation_buffer = av_malloc(p->modulation_buffer_length * sizeof(*p->modulation_buffer));
+ p->modulation_buffer = av_malloc_array(p->modulation_buffer_length, sizeof(*p->modulation_buffer));
if (!p->modulation_buffer || !p->delay_buffer)
return AVERROR(ENOMEM);