Browse Source

avfilter/af_stereowiden: fix 2nd argument for av_calloc

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 9 years ago
parent
commit
aaf4e703f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_stereowiden.c

+ 1
- 1
libavfilter/af_stereowiden.c View File

@@ -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;


Loading…
Cancel
Save