1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/af_afir: do not over allocate fft buffer

This commit is contained in:
Paul B Mahol 2018-12-30 22:08:11 +01:00
parent 7f42276aa9
commit ea3a980a61

View File

@ -326,7 +326,7 @@ static int init_segment(AVFilterContext *ctx, AudioFIRSegment *seg,
if (!seg->rdft || !seg->irdft) if (!seg->rdft || !seg->irdft)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
seg->fft_length = part_size * 4 + 1; seg->fft_length = part_size * 2 + 1;
seg->part_size = part_size; seg->part_size = part_size;
seg->block_size = FFALIGN(seg->fft_length, 32); seg->block_size = FFALIGN(seg->fft_length, 32);
seg->coeff_size = FFALIGN(seg->part_size + 1, 32); seg->coeff_size = FFALIGN(seg->part_size + 1, 32);