From a672d4cfe94652817f87d0e8ad9a3b91aa2d92c8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 16 May 2016 14:02:19 -0400 Subject: [PATCH] ... --- coders/mat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coders/mat.c b/coders/mat.c index 3b5857adc..462bd530e 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -744,11 +744,14 @@ static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image, if (HDR.imagf == 1) for (y=0; y < (ssize_t) image->rows; y++) { + ssize_t + count; + /* Read complex pixels. */ - status=ReadBlob(image,depth/8*image->columns,(char *) pixels); - if (status == -1) + count=ReadBlob(image,depth/8*image->columns,(char *) pixels); + if (count == -1) break; if (HDR.Type[1] == 0) InsertComplexDoubleRow(image,(double *) pixels,y,0,0,exception); -- 2.40.0