From dfa1270146d8c6f9b252a66228ca15ee62aa75f2 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 11 Feb 2025 22:36:28 +0100 Subject: [PATCH] Corrected patch. --- coders/miff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/miff.c b/coders/miff.c index 3ff1b9687..7297a2263 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1320,7 +1320,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, if (quantum_format != UndefinedQuantumFormat) { status=SetQuantumFormat(image,quantum_info,quantum_format); - image->depth=GetImageQuantumDepth(image,MagickFalse); + image->depth=quantum_info->depth; if (status == MagickFalse) ThrowMIFFException(ResourceLimitError,"MemoryAllocationFailed"); }