Drop hack to fix byte count.

The byte count on this 800x600 32-bit image should come to 1,920,000
bytes... But it came to 1,920,032 bytes. I'm not sure where the extra
32 bytes come from, but I have to go fix it before I get to call the
decoder complete.
This commit is contained in:
2024-10-14 20:29:37 -05:00
parent ef5d962621
commit 5ae4aa5823

View File

@@ -42,7 +42,7 @@ fn main() -> Result<(), DecodeError> {
let mut writer = encoder.write_header().unwrap();
let data: Vec<u8> = PixelIterExpander::try_new(decoder).unwrap().collect();
let result = writer.write_image_data(&data[0..(data.len()-32)]);
let result = writer.write_image_data(&data);
if let Err(res) = result {
eprintln!("{}", res);
}