avfilter/af_afir: do not over allocate fft buffer
authorPaul B Mahol <onemda@gmail.com>
Sun, 30 Dec 2018 21:08:11 +0000 (22:08 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 30 Dec 2018 21:11:46 +0000 (22:11 +0100)
libavfilter/af_afir.c

index 35fa66b..73a613f 100644 (file)
@@ -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);