summaryrefslogtreecommitdiff
path: root/libavfilter/af_afir.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-30 22:08:11 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-30 22:11:46 +0100
commitea3a980a610e2517fcb2abe2708166a4b9f6e57d (patch)
tree42323d1aa45d1f1f59cc748b1d22411efd03b308 /libavfilter/af_afir.c
parent7f42276aa91c5fe1ad43f43e58a7645a674a3fda (diff)
avfilter/af_afir: do not over allocate fft buffer
Diffstat (limited to 'libavfilter/af_afir.c')
-rw-r--r--libavfilter/af_afir.c2
1 files changed, 1 insertions, 1 deletions
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);