[FFmpeg-cvslog] avfilter/af_aphaser: Use av_malloc_array()

Michael Niedermayer git at videolan.org
Sat Jun 7 15:11:08 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  7 15:05:33 2014 +0200| [1c7ac94cdf3fdf14842d283d472bafff79c3bdd5] | committer: Michael Niedermayer

avfilter/af_aphaser: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c7ac94cdf3fdf14842d283d472bafff79c3bdd5
---

 libavfilter/af_aphaser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_aphaser.c b/libavfilter/af_aphaser.c
index 0fc45ea..119e1a3 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);



More information about the ffmpeg-cvslog mailing list