q=pixels+number_pixels;
for (y=0; y < (ssize_t) image->rows; )
{
+ MagickBooleanType
+ status;
+
if ((p < pixels) || (p >= q))
break;
count=ReadBlobByte(image);
break;
if (count > 0)
{
- count=(int) MagickMin((size_t) count,(size_t) (q-p));
/*
Encoded mode.
*/
+ count=(int) MagickMin((size_t) count,(size_t) (q-p));
byte=ReadBlobByte(image);
if (byte == EOF)
break;
Escape mode.
*/
count=ReadBlobByte(image);
+ if (count == EOF)
+ break;
if (count == 0x01)
return(MagickTrue);
switch (count)
}
}
}
- if (SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,image->rows) == MagickFalse)
+ status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,
+ image->rows);
+ if (status == MagickFalse)
break;
}
(void) ReadBlobByte(image); /* end of line */
(void) ReadBlobByte(image);
- return(MagickTrue);
+ return(y < (ssize_t) image->rows ? MagickFalse : MagickTrue);
}
\f
/*