[FFmpeg-cvslog] nlmeans_vulkan: fix uninitialized reads

Lynne git at videolan.org
Sun Aug 11 06:21:31 EEST 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sun Aug 11 04:27:20 2024 +0200| [12080ff0404059847df8bc30cc5023a9010f60b2] | committer: Lynne

nlmeans_vulkan: fix uninitialized reads

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

 libavfilter/vf_nlmeans_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_nlmeans_vulkan.c b/libavfilter/vf_nlmeans_vulkan.c
index 5840aea4a7..be9305854b 100644
--- a/libavfilter/vf_nlmeans_vulkan.c
+++ b/libavfilter/vf_nlmeans_vulkan.c
@@ -564,7 +564,7 @@ static av_cold int init_filter(AVFilterContext *ctx)
     NLMeansVulkanContext *s = ctx->priv;
     FFVulkanContext *vkctx = &s->vkctx;
     const int planes = av_pix_fmt_count_planes(s->vkctx.output_format);
-    FFVkSPIRVCompiler *spv;
+    FFVkSPIRVCompiler *spv = NULL;
     int *offsets_buf;
     int offsets_dispatched = 0, nb_dispatches = 0;
 



More information about the ffmpeg-cvslog mailing list