[FFmpeg-cvslog] avfilter/af_aiir: fix typo which may cause overread

Paul B Mahol git at videolan.org
Mon Jan 8 09:45:31 EET 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan  8 08:43:42 2018 +0100| [205046420d5a4d389adb705538df3d6158be1fdb] | committer: Paul B Mahol

avfilter/af_aiir: fix typo which may cause overread

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=205046420d5a4d389adb705538df3d6158be1fdb
---

 libavfilter/af_aiir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index 87c3dadac8..6ff48e45aa 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -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);
         }
     }



More information about the ffmpeg-cvslog mailing list