From 7cd8818da8338b43e2a2c9f53cc4834124c5e766 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Wed, 2 Apr 2025 09:31:33 +0200 Subject: [PATCH] ipa: simple: Initialize ccmEnabled to false ccmEnabled variable is not initialized by default, which results in usage of CCM when the algorithm itself is not enabled and configured. The bug manifests itself as seldom reproducible corrupted video stream. Fix by initialize ccmEnabled member where it is declared. Reviewed-by: Milan Zamazal Reviewed-by: Laurent Pinchart Fixes: ac3068655643 ("libcamera: software_isp: Track whether CCM is enabled") Signed-off-by: Stanislaw Gruszka Signed-off-by: Kieran Bingham --- src/ipa/simple/ipa_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipa/simple/ipa_context.h b/src/ipa/simple/ipa_context.h index 6b1a0655a..88cc6c353 100644 --- a/src/ipa/simple/ipa_context.h +++ b/src/ipa/simple/ipa_context.h @@ -93,7 +93,7 @@ struct IPAContext { IPAActiveState activeState; FCQueue frameContexts; ControlInfoMap::Map ctrlMap; - bool ccmEnabled; + bool ccmEnabled = false; }; } /* namespace ipa::soft */