Merge pull request #384 from image-rs/renovate-decode-iteration

Fix decode example/fuzz with new iteration
This commit is contained in:
Aurelia Molzer authored and GitHub committed 2026-04-08 18:49:52 +00:00
commit d760bd3442
2 files changed
+10 -12

No files matched your search

+6 -6
View File
@@ -13,17 +13,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut data = DecodingSampleBuffer::I8(vec![]);
for i in 0u32.. {
if !reader.more_images() {
break;
}
reader.next_directory()?;
let colortype = reader.colortype()?;
let dimensions = reader.dimensions()?;
let layout = reader.read_image_to_buffer(&mut data)?;
debug_planes(i, &mut data, &layout, &colortype, dimensions);
if !reader.more_images() {
break;
}
reader.next_image()?
}
Ok(())