[FFmpeg-cvslog] avfilter/af_aiir: fix array length when selecting conjugate poles

Paul B Mahol git at videolan.org
Fri Nov 22 00:40:55 EET 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Nov 21 23:23:55 2019 +0100| [9cd56bb94c857d23194628953169d5d2de073ce0] | committer: Paul B Mahol

avfilter/af_aiir: fix array length when selecting conjugate poles

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

 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 ffe2606da6..ac9558b8aa 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -514,7 +514,7 @@ static int decompose_zp2biquads(AVFilterContext *ctx, int channels)
                 }
             }
 
-            for (i = 0; i < iir->nb_ab[1]; i++) {
+            for (i = 0; i < iir->nb_ab[0]; i++) {
                 if (isnan(iir->ab[0][2 * i]) || isnan(iir->ab[0][2 * i + 1]))
                     continue;
 



More information about the ffmpeg-cvslog mailing list