Skip to content

Commit 19c72c1

Browse files
authored
fix(heif): Error saving multiple images with different bit depths (#5018)
This variable should not have been static. Signed-off-by: Brecht Van Lommel <brecht@blender.org>
1 parent 4f08ac0 commit 19c72c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/heif.imageio/heifoutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ HeifOutput::open(const std::string& name, const ImageSpec& newspec,
128128
try {
129129
m_ctx.reset(new heif::Context);
130130
m_himage = heif::Image();
131-
static heif_chroma chromas[/*nchannels*/]
131+
const heif_chroma chromas[/*nchannels*/]
132132
= { heif_chroma_undefined, heif_chroma_monochrome,
133133
heif_chroma_undefined,
134134
(m_bitdepth == 8) ? heif_chroma_interleaved_RGB

0 commit comments

Comments
 (0)