23 lines
805 B
Diff
23 lines
805 B
Diff
From c99cbc8d8663248bf353cd9042b04d7936e7587a Mon Sep 17 00:00:00 2001
|
|
From: Dirk Lemstra <dirk@lemstra.org>
|
|
Date: Tue, 11 Feb 2025 22:34:41 +0100
|
|
Subject: [PATCH] Update the image depth after this has been changed by
|
|
SetQuantumFormat.
|
|
|
|
---
|
|
coders/miff.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/coders/miff.c b/coders/miff.c
|
|
index f7af676a0..3ff1b9687 100644
|
|
--- a/coders/miff.c
|
|
+++ b/coders/miff.c
|
|
@@ -1320,6 +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);
|
|
if (status == MagickFalse)
|
|
ThrowMIFFException(ResourceLimitError,"MemoryAllocationFailed");
|
|
}
|