avfilter/af_aiir: fix typo which may cause overread
authorPaul B Mahol <onemda@gmail.com>
Mon, 8 Jan 2018 07:43:42 +0000 (08:43 +0100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 8 Jan 2018 07:45:02 +0000 (08:45 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_aiir.c

index 87c3dad..6ff48e4 100644 (file)
@@ -306,7 +306,7 @@ static int expand(AVFilterContext *ctx, double *pz, int nb, double *coeffs)
     for (i = 0; i < nb + 1; i++) {
         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",
-                   coeffs[2 * i + i], i);
+                   coeffs[2 * i + 1], i);
             return AVERROR(EINVAL);
         }
     }