aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-05-22 14:12:06 +0200
committerPaul B Mahol <onemda@gmail.com>2020-05-22 14:12:06 +0200
commit8c825e43f80b1c2faa417f42e0595b5887226367 (patch)
tree380e979d0e60df14bc8994dfaf612f628292c927
parent07a9e5ec5eb239c22ce3324f53cfde209cdfb6d6 (diff)
downloadffmpeg-8c825e43f80b1c2faa417f42e0595b5887226367.tar.gz
avfilter/af_aiir: fix first denominator calculation
-rw-r--r--libavfilter/af_aiir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index 8b362817b7..bacdab6088 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -1038,8 +1038,9 @@ static int config_output(AVFilterLink *outlink)
iir->ab[0][i] /= iir->ab[0][0];
}
+ iir->ab[0][0] = 1.0;
for (i = 0; i < iir->nb_ab[1]; i++) {
- iir->ab[1][i] *= iir->g / iir->ab[0][0];
+ iir->ab[1][i] *= iir->g;
}
normalize_coeffs(ctx, ch);