mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-04 11:26:44 -04:00
Minor optimization for standard case with only one image.
This commit is contained in:
@@ -817,13 +817,14 @@ public final class JPEGImageReader extends ImageReaderBase {
|
||||
|
||||
// TODO: We should probably optimize this
|
||||
try {
|
||||
segments = null;
|
||||
getSOF(); // No SOF, no image
|
||||
count++;
|
||||
}
|
||||
catch (IIOException ignore) {}
|
||||
}
|
||||
|
||||
currentStreamIndex = -1;
|
||||
imageInput.seek(streamOffsets.get(currentStreamIndex));
|
||||
|
||||
return count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user