Fixed some typos.

This commit is contained in:
Harald Kuhr 2014-10-10 10:06:21 +02:00
parent 00e68d6035
commit 5cb44fa20b

View File

@ -784,7 +784,7 @@ public class TIFFImageReader extends ImageReaderBase {
imageInput.seek(jpegOffset); imageInput.seek(jpegOffset);
// NOTE: Some known TIFF encoder encodes bad JPEGInterchangeFormat tags, // NOTE: Some known TIFF encoder encodes bad JPEGInterchangeFormat tags,
// but has the correct offset to the JPEG stream in the StripOffset tag. // but has the correct offset to the JPEG stream in the StripOffsets tag.
long realJPEGOffset = jpegOffset; long realJPEGOffset = jpegOffset;
short expectedSOI = (short) (imageInput.readByte() << 8 | imageInput.readByte()); short expectedSOI = (short) (imageInput.readByte() << 8 | imageInput.readByte());
@ -799,7 +799,7 @@ public class TIFFImageReader extends ImageReaderBase {
} }
if (realJPEGOffset != jpegOffset) { if (realJPEGOffset != jpegOffset) {
processWarningOccurred("Incorrect JPEGInterchangeFormat tag, using StripOffset/TileOffset instead."); processWarningOccurred("Incorrect JPEGInterchangeFormat tag, using StripOffsets/TileOffsets instead.");
} }
else { else {
processWarningOccurred("Incorrect JPEGInterchangeFormat tag encountered (not a valid SOI marker)."); processWarningOccurred("Incorrect JPEGInterchangeFormat tag encountered (not a valid SOI marker).");