[FFmpeg-cvslog] avfilter/vf_convolve: reset fft/ifft pointers after free

Paul B Mahol git at videolan.org
Tue Feb 25 18:40:06 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 25 17:35:09 2020 +0100| [7e08a9237080cd8fbe0fa846548ff185e682e92f] | committer: Paul B Mahol

avfilter/vf_convolve: reset fft/ifft pointers after free

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e08a9237080cd8fbe0fa846548ff185e682e92f
---

 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;
         }
     }
 



More information about the ffmpeg-cvslog mailing list