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

avfilter/af_aiir: fix typo which may cause overread

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 9d68c019
...@@ -306,7 +306,7 @@ static int expand(AVFilterContext *ctx, double *pz, int nb, double *coeffs) ...@@ -306,7 +306,7 @@ static int expand(AVFilterContext *ctx, double *pz, int nb, double *coeffs)
for (i = 0; i < nb + 1; i++) { for (i = 0; i < nb + 1; i++) {
if (fabs(coeffs[2 * i + 1]) > DBL_EPSILON) { if (fabs(coeffs[2 * i + 1]) > DBL_EPSILON) {
av_log(ctx, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n", av_log(ctx, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n",
coeffs[2 * i + i], i); coeffs[2 * i + 1], i);
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
} }
......
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