提交 aaf4e703 编写于 作者: P Paul B Mahol

avfilter/af_stereowiden: fix 2nd argument for av_calloc

Signed-off-by: NPaul B Mahol <onemda@gmail.com>
上级 b290972b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册