[FFmpeg-cvslog] avfilter/af_aiir: remove unused argument
Paul B Mahol
git at videolan.org
Mon Oct 19 19:43:36 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Oct 19 18:38:43 2020 +0200| [5da94413d146fee2d3dab2339949f15952175481] | committer: Paul B Mahol
avfilter/af_aiir: remove unused argument
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5da94413d146fee2d3dab2339949f15952175481
---
libavfilter/af_aiir.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index 64bd78ad8a..2e811cff35 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -899,7 +899,7 @@ static double fact(double i)
return i * fact(i - 1.);
}
-static double coef_sf2zf(double *a, int N, int n, double fs)
+static double coef_sf2zf(double *a, int N, int n)
{
double z = 0.;
@@ -918,7 +918,7 @@ static double coef_sf2zf(double *a, int N, int n, double fs)
return z;
}
-static void convert_sf2tf(AVFilterContext *ctx, int channels, int sample_rate)
+static void convert_sf2tf(AVFilterContext *ctx, int channels)
{
AudioIIRContext *s = ctx->priv;
int ch;
@@ -935,10 +935,10 @@ static void convert_sf2tf(AVFilterContext *ctx, int channels, int sample_rate)
memcpy(temp1, iir->ab[1], iir->nb_ab[1] * sizeof(*temp1));
for (int n = 0; n < iir->nb_ab[0]; n++)
- iir->ab[0][n] = coef_sf2zf(temp0, iir->nb_ab[0] - 1, n, sample_rate);
+ iir->ab[0][n] = coef_sf2zf(temp0, iir->nb_ab[0] - 1, n);
for (int n = 0; n < iir->nb_ab[1]; n++)
- iir->ab[1][n] = coef_sf2zf(temp1, iir->nb_ab[1] - 1, n, sample_rate);
+ iir->ab[1][n] = coef_sf2zf(temp1, iir->nb_ab[1] - 1, n);
next:
av_free(temp0);
@@ -1235,7 +1235,7 @@ static int config_output(AVFilterLink *outlink)
return ret;
if (s->format == -1) {
- convert_sf2tf(ctx, inlink->channels, inlink->sample_rate);
+ convert_sf2tf(ctx, inlink->channels);
s->format = 0;
} else if (s->format == 2) {
convert_pr2zp(ctx, inlink->channels);
More information about the ffmpeg-cvslog
mailing list