[FFmpeg-cvslog] avfilter/af_afir: do not over allocate fft buffer
Paul B Mahol
git at videolan.org
Sun Dec 30 23:14:30 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Dec 30 22:08:11 2018 +0100| [ea3a980a610e2517fcb2abe2708166a4b9f6e57d] | committer: Paul B Mahol
avfilter/af_afir: do not over allocate fft buffer
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea3a980a610e2517fcb2abe2708166a4b9f6e57d
---
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);
More information about the ffmpeg-cvslog
mailing list