case SkipLinesOp:
{
operand=ReadBlobByte(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
if (opcode & 0x40)
{
operand=ReadBlobLSBSignedShort(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
- }
+ }
x=0;
y+=operand;
break;
case SetColorOp:
{
operand=ReadBlobByte(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
plane=(unsigned char) operand;
if (plane == 255)
case SkipPixelsOp:
{
operand=ReadBlobByte(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
if (opcode & 0x40)
{
operand=ReadBlobLSBSignedShort(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
}
x+=operand;
case ByteDataOp:
{
operand=ReadBlobByte(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
if (opcode & 0x40)
{
operand=ReadBlobLSBSignedShort(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
}
offset=(ssize_t) (((image->rows-y-1)*image->columns*number_planes)+x*
case RunDataOp:
{
operand=ReadBlobByte(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
if (opcode & 0x40)
{
operand=ReadBlobLSBSignedShort(image);
- if (opcode == EOF)
+ if (operand == EOF)
ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
}
pixel=(unsigned char) ReadBlobByte(image);