avfilter/af_aiir: use correct size when allocating in zp2tf

This commit is contained in:
Paul B Mahol 2020-05-30 10:55:28 +02:00
parent 726dbc57f8
commit aac16abd92

View File

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