X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_afftfilt.c;h=52755a1fb42d3524c41c8b5185408cff2cb73931;hb=2508e606fba86f2e460eebb045e29e1f069a4d72;hp=3fc1a1b4c92237bc1b8cb5da8f3fa1d9d6e691b2;hpb=2584656106bf6c6e1b80b63c793a3425d204d6a2;p=ffmpeg diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c index 3fc1a1b4c92..52755a1fb42 100644 --- a/libavfilter/af_afftfilt.c +++ b/libavfilter/af_afftfilt.c @@ -166,7 +166,7 @@ static int config_input(AVFilterLink *inlink) sizeof(*s->window_func_lut)); if (!s->window_func_lut) return AVERROR(ENOMEM); - ff_generate_window_func(s->window_func_lut, s->window_size, s->win_func, &overlap); + generate_window_func(s->window_func_lut, s->window_size, s->win_func, &overlap); if (s->overlap == 1) s->overlap = overlap; @@ -371,6 +371,9 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&s->real); av_freep(&s->imag); av_frame_free(&s->buffer); + av_freep(&s->window_func_lut); + + av_audio_fifo_free(s->fifo); } static const AVFilterPad inputs[] = {