Skip to content

Commit

Permalink
Update the image depth after this has been changed by SetQuantumFormat.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Feb 11, 2025
1 parent 253f752 commit c99cbc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/miff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit c99cbc8

Please sign in to comment.