[FFmpeg-cvslog] avfilter/af_stereowiden: fix 2nd argument for av_calloc

Paul B Mahol git at videolan.org
Tue Sep 15 18:47:51 CEST 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep 15 16:27:52 2015 +0000| [aaf4e703f6d9583e1a910191f39e738cf5595e24] | committer: Paul B Mahol

avfilter/af_stereowiden: fix 2nd argument for av_calloc

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c
index 30f8754..8f671ca 100644
--- a/libavfilter/af_stereowiden.c
+++ b/libavfilter/af_stereowiden.c
@@ -73,7 +73,7 @@ static int config_input(AVFilterLink *inlink)
     StereoWidenContext *s = ctx->priv;
 
     s->length = 2 * s->delay * inlink->sample_rate / 1000;
-    s->buffer = av_calloc(s->length, sizeof(s->buffer));
+    s->buffer = av_calloc(s->length, sizeof(*s->buffer));
     if (!s->buffer)
         return AVERROR(ENOMEM);
     s->write = s->buffer;



More information about the ffmpeg-cvslog mailing list