Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -899,7 +899,7 @@ static double fact(double i) · 898 unmodified lines | ||
| 899 | 899 | return i * fact(i - 1.); |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | −static double coef_sf2zf(double *a, int N, int n, double fs) | |
| 902 | +static double coef_sf2zf(double *a, int N, int n) | |
| 903 | 903 | { |
| 904 | 904 | double z = 0.; |
| 905 | 905 | |
| @@ -918,7 +918,7 @@ static double coef_sf2zf(double *a, int N, int n, double fs) · 12 unmodified lines | ||
| 918 | 918 | return z; |
| 919 | 919 | } |
| 920 | 920 | |
| 921 | −static void convert_sf2tf(AVFilterContext *ctx, int channels, int sample_rate) | |
| 921 | +static void convert_sf2tf(AVFilterContext *ctx, int channels) | |
| 922 | 922 | { |
| 923 | 923 | AudioIIRContext *s = ctx->priv; |
| 924 | 924 | int ch; |
| @@ -935,10 +935,10 @@ static void convert_sf2tf(AVFilterContext *ctx, int channels, int sample_rate) · 10 unmodified lines | ||
| 935 | 935 | memcpy(temp1, iir->ab[1], iir->nb_ab[1] * sizeof(*temp1)); |
| 936 | 936 | |
| 937 | 937 | for (int n = 0; n < iir->nb_ab[0]; n++) |
| 938 | − iir->ab[0][n] = coef_sf2zf(temp0, iir->nb_ab[0] - 1, n, sample_rate); | |
| 938 | + iir->ab[0][n] = coef_sf2zf(temp0, iir->nb_ab[0] - 1, n); | |
| 939 | 939 | |
| 940 | 940 | for (int n = 0; n < iir->nb_ab[1]; n++) |
| 941 | − iir->ab[1][n] = coef_sf2zf(temp1, iir->nb_ab[1] - 1, n, sample_rate); | |
| 941 | + iir->ab[1][n] = coef_sf2zf(temp1, iir->nb_ab[1] - 1, n); | |
| 942 | 942 | |
| 943 | 943 | next: |
| 944 | 944 | av_free(temp0); |
| @@ -1235,7 +1235,7 @@ static int config_output(AVFilterLink *outlink) · 290 unmodified lines | ||
| 1235 | 1235 | return ret; |
| 1236 | 1236 | |
| 1237 | 1237 | if (s->format == -1) { |
| 1238 | − convert_sf2tf(ctx, inlink->channels, inlink->sample_rate); | |
| 1238 | + convert_sf2tf(ctx, inlink->channels); | |
| 1239 | 1239 | s->format = 0; |
| 1240 | 1240 | } else if (s->format == 2) { |
| 1241 | 1241 | convert_pr2zp(ctx, inlink->channels); |