catch EOF at reading the next-IFD pointer as EOF marker

This commit is contained in:
Oliver Schmidtmer 2016-01-28 20:12:11 +01:00
parent a9428a1ecf
commit 0997f5199a

View File

@ -119,7 +119,13 @@ public final class EXIFReader extends MetadataReader {
if (readLinked) { if (readLinked) {
if (nextOffset == -1) { if (nextOffset == -1) {
nextOffset = pInput.readUnsignedInt(); try {
nextOffset = pInput.readUnsignedInt();
}
catch (EOFException e) {
// catch EOF here as missing EOF marker
nextOffset = 0;
}
} }
// Read linked IFDs // Read linked IFDs