mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Added an extra mark to match the reset call in the finally block
This commit is contained in:
parent
7cb1c6811a
commit
b43faf2fae
@ -69,6 +69,12 @@ public final class PICTImageReaderSpi extends ImageReaderSpiBase {
|
||||
else {
|
||||
// Skip header 512 bytes for file-based streams
|
||||
stream.reset();
|
||||
|
||||
// If we don't mark again here, the reset call in the finally block will:
|
||||
// A) do nothing
|
||||
// B) eat marks created in the stream previously
|
||||
stream.mark();
|
||||
|
||||
skipNullHeader(stream);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user