We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5944e81 commit 1a65995Copy full SHA for 1a65995
src/librawspeed/tiff/TiffEntry.cpp
@@ -54,14 +54,12 @@ TiffEntry::TiffEntry(TiffIFD* parent_, ByteStream& bs)
54
ThrowTPE("integer overflow in size calculation.");
55
56
uint32_t byte_size = count << datashifts[numType];
57
- uint32_t data_offset = UINT32_MAX;
58
59
if (byte_size <= 4) {
60
- data_offset = bs.getPosition();
61
data = bs.getSubStream(bs.getPosition(), byte_size);
62
bs.skipBytes(4);
63
} else {
64
- data_offset = bs.getU32();
+ uint32_t data_offset = bs.getU32();
65
if (type == TiffDataType::OFFSET ||
66
isIn(tag, {TiffTag::DNGPRIVATEDATA, TiffTag::MAKERNOTE,
67
TiffTag::MAKERNOTE_ALT, TiffTag::FUJI_RAW_IFD,
0 commit comments