summaryrefslogtreecommitdiff
path: root/coders/mat.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/mat.c')
-rw-r--r--coders/mat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coders/mat.c b/coders/mat.c
index 808833119..1ff53e5ea 100644
--- a/coders/mat.c
+++ b/coders/mat.c
@@ -1349,6 +1349,8 @@ done_reading:
}
}
}
+ if (EOFBlob(image) != MagickFalse)
+ break;
/* Allocate next image structure. */
AcquireNextImage(image_info,image,exception);