aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_acrossover.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-12-02 12:38:29 +0100
committerPaul B Mahol <onemda@gmail.com>2020-12-02 13:54:53 +0100
commitb0298ad4e5448d949c6e4a3cdd55de223cb59865 (patch)
tree9bdc54ed0615a987d4cad591d4209222b5249cf7 /libavfilter/af_acrossover.c
parent0a5ff1964355f6d288071b7c0bc4fb24f658c9fc (diff)
downloadffmpeg-b0298ad4e5448d949c6e4a3cdd55de223cb59865.tar.gz
avfilter/af_acrossover: remove pointless allocation of static size
Diffstat (limited to 'libavfilter/af_acrossover.c')
-rw-r--r--libavfilter/af_acrossover.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c
index 241f1dbb77..60bb2330f0 100644
--- a/libavfilter/af_acrossover.c
+++ b/libavfilter/af_acrossover.c
@@ -62,7 +62,7 @@ typedef struct AudioCrossoverContext {
int first_order;
int ap_filter_count;
int nb_splits;
- float *splits;
+ float splits[MAX_SPLITS];
BiquadCoeffs lp[MAX_BANDS][20];
BiquadCoeffs hp[MAX_BANDS][20];
@@ -110,10 +110,6 @@ static av_cold int init(AVFilterContext *ctx)
if (!s->fdsp)
return AVERROR(ENOMEM);
- s->splits = av_calloc(MAX_SPLITS, sizeof(*s->splits));
- if (!s->splits)
- return AVERROR(ENOMEM);
-
p = s->splits_str;
for (i = 0; i < MAX_SPLITS; i++) {
float freq;
@@ -513,7 +509,6 @@ static av_cold void uninit(AVFilterContext *ctx)
int i;
av_freep(&s->fdsp);
- av_freep(&s->splits);
av_frame_free(&s->xover);
for (i = 0; i < ctx->nb_outputs; i++)