Fix error case
This commit is contained in:
1 parent
d00ab0cc61
commit
6281360f10
1 file changed
+3
-3
+3
-3
@@ -950,9 +950,9 @@ impl<R: Read + Seek> Decoder<R> {
|
|||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
if offsets.len() != bytes.len() {
|
if offsets.len() != bytes.len() {
|
||||||
return Err(TiffError::FormatError(TiffFormatError::Format(
|
return Err(TiffError::FormatError(
|
||||||
String::from("Size mismatch of StripOffsets and StripByteCounts"),
|
TiffFormatError::InconsistentSizesEncountered,
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut res_img = Vec::with_capacity(offsets[0] as usize);
|
let mut res_img = Vec::with_capacity(offsets[0] as usize);
|
||||||
|
|||||||
Reference in new issue
Block a user