restore position if necessary

v0.27.3
Michał Walenciak 8 years ago
parent cc8c470620
commit ff21b5a962

@ -396,11 +396,16 @@ namespace Exiv2
return Image::AutoPtr(new BigTiffImage(io));
}
bool isBigTiffType(BasicIo& io, bool)
bool isBigTiffType(BasicIo& io, bool advance)
{
const long pos = io.tell();
const Header header = readHeader(io);
const bool valid = header.isValid();
return header.isValid();
if (valid == false || advance == false)
io.seek(pos, BasicIo::beg);
return valid;
}
}

Loading…
Cancel
Save