mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
Merge pull request #431 from seafraf/master
Added an extra mark to match the reset call in the finally block
This commit is contained in:
commit
520c6bd81c
@ -69,6 +69,12 @@ public final class PICTImageReaderSpi extends ImageReaderSpiBase {
|
|||||||
else {
|
else {
|
||||||
// Skip header 512 bytes for file-based streams
|
// Skip header 512 bytes for file-based streams
|
||||||
stream.reset();
|
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);
|
skipNullHeader(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user