Skip to content

Commit

Permalink
obtain scene from image structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 9, 2022
1 parent 3d3b982 commit f20861f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
} while ((status != MagickFalse) && (more_frames != MagickFalse));
TIFFClose(tiff);
if ((image_info->number_scenes != 0) &&
(image_info->scene >= GetImageListLength(image)))
(image->scene >= GetImageListLength(image)))
status=MagickFalse;
if (status == MagickFalse)
return(DestroyImageList(image));
Expand Down

0 comments on commit f20861f

Please sign in to comment.