From 7e08a9237080cd8fbe0fa846548ff185e682e92f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 25 Feb 2020 17:35:09 +0100 Subject: [PATCH] avfilter/vf_convolve: reset fft/ifft pointers after free --- libavfilter/vf_convolve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_convolve.c b/libavfilter/vf_convolve.c index 024eb68486..90ec98715b 100644 --- a/libavfilter/vf_convolve.c +++ b/libavfilter/vf_convolve.c @@ -590,7 +590,9 @@ static av_cold void uninit(AVFilterContext *ctx) for (j = 0; j < MAX_THREADS; j++) { av_fft_end(s->fft[i][j]); + s->fft[i][j] = NULL; av_fft_end(s->ifft[i][j]); + s->ifft[i][j] = NULL; } }