mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 12:35:29 -04:00
Minor optimization for standard case with only one image.
This commit is contained in:
parent
3f7cb24407
commit
6ac8a5d8b4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user