From 03250258d7684239b5efc6db40f30f3122ac9e5f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 28 Jan 2026 15:28:09 +0100 Subject: [PATCH] fix(heif): Error saving multiple images with different bit depths This variable should not have been static. Signed-off-by: Brecht Van Lommel --- src/heif.imageio/heifoutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heif.imageio/heifoutput.cpp b/src/heif.imageio/heifoutput.cpp index 309bc53ac5..315f6b1a60 100644 --- a/src/heif.imageio/heifoutput.cpp +++ b/src/heif.imageio/heifoutput.cpp @@ -128,7 +128,7 @@ HeifOutput::open(const std::string& name, const ImageSpec& newspec, try { m_ctx.reset(new heif::Context); m_himage = heif::Image(); - static heif_chroma chromas[/*nchannels*/] + const heif_chroma chromas[/*nchannels*/] = { heif_chroma_undefined, heif_chroma_monochrome, heif_chroma_undefined, (m_bitdepth == 8) ? heif_chroma_interleaved_RGB