From ea3a980a610e2517fcb2abe2708166a4b9f6e57d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 30 Dec 2018 22:08:11 +0100 Subject: [PATCH] avfilter/af_afir: do not over allocate fft buffer --- libavfilter/af_afir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c index 35fa66bad5..73a613f153 100644 --- a/libavfilter/af_afir.c +++ b/libavfilter/af_afir.c @@ -326,7 +326,7 @@ static int init_segment(AVFilterContext *ctx, AudioFIRSegment *seg, if (!seg->rdft || !seg->irdft) return AVERROR(ENOMEM); - seg->fft_length = part_size * 4 + 1; + seg->fft_length = part_size * 2 + 1; seg->part_size = part_size; seg->block_size = FFALIGN(seg->fft_length, 32); seg->coeff_size = FFALIGN(seg->part_size + 1, 32);