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

avfilter/af_aiir: use correct size when allocating in zp2tf

上级 726dbc57
......@@ -468,8 +468,8 @@ static int convert_zp2tf(AVFilterContext *ctx, int channels)
IIRChannel *iir = &s->iir[ch];
double *topc, *botc;
topc = av_calloc((iir->nb_ab[0] + 1) * 2, sizeof(*topc));
botc = av_calloc((iir->nb_ab[1] + 1) * 2, sizeof(*botc));
topc = av_calloc((iir->nb_ab[1] + 1) * 2, sizeof(*topc));
botc = av_calloc((iir->nb_ab[0] + 1) * 2, sizeof(*botc));
if (!topc || !botc) {
ret = AVERROR(ENOMEM);
goto fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册