Commit aac16abd authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_aiir: use correct size when allocating in zp2tf

parent 726dbc57
...@@ -468,8 +468,8 @@ static int convert_zp2tf(AVFilterContext *ctx, int channels) ...@@ -468,8 +468,8 @@ static int convert_zp2tf(AVFilterContext *ctx, int channels)
IIRChannel *iir = &s->iir[ch]; IIRChannel *iir = &s->iir[ch];
double *topc, *botc; double *topc, *botc;
topc = av_calloc((iir->nb_ab[0] + 1) * 2, sizeof(*topc)); topc = av_calloc((iir->nb_ab[1] + 1) * 2, sizeof(*topc));
botc = av_calloc((iir->nb_ab[1] + 1) * 2, sizeof(*botc)); botc = av_calloc((iir->nb_ab[0] + 1) * 2, sizeof(*botc));
if (!topc || !botc) { if (!topc || !botc) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment