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"); }