This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 85b59270837f90f4d737ca88ca9520d440fd6884
Author:     Zhao Zhili <[email protected]>
AuthorDate: Tue Dec 23 01:10:31 2025 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Fri Jan 2 23:46:42 2026 +0800

    avfilter/vf_libopencv: fix null pointer dereference
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavfilter/vf_libopencv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 06a2954bc6..c125d294d1 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -294,6 +294,8 @@ static av_cold void dilate_uninit(AVFilterContext *ctx)
     OCVContext *s = ctx->priv;
     DilateContext *dilate = s->priv;
 
+    if (!dilate)
+        return;
     cvReleaseStructuringElement(&dilate->kernel);
 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to