Reading fields shouldn't need the entire Decoder

This commit is contained in:
Jonathan Behrens committed 2022-01-12 19:50:06 -05:00
1 parent 23fe194ad9
commit 2d10cff97e
3 files changed
+80 -62

No files matched your search

+1 -3
View File
@@ -988,9 +988,7 @@ impl<R: Read + Seek> Decoder<R> {
Some(entry) => entry.clone(),
};
let limits = self.limits.clone();
Ok(Some(entry.val(&limits, self)?))
Ok(Some(entry.val(&self.limits, self.bigtiff, &mut self.reader)?))
}
/// Tries to retrieve a tag and convert it to the desired unsigned type.