Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed May 6, 2024
1 parent 9869473 commit ca087f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vpx/expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ fn write_image_bmp(
let mut reader = LzwReader::new(Box::new(cursor), width, height, 4);
let decompressed_rgba = reader.decompress();

let rgba_image = image::RgbaImage::from_raw(width, height, decompressed_rgba).unwrap();
let rgba_image = image::RgbaImage::from_raw(width, height, decompressed_rgba)
.expect("Decompressed image data does not match dimensions");
let dynamic_image = image::DynamicImage::ImageRgba8(rgba_image);

// convert to RGB
Expand Down

0 comments on commit ca087f2

Please sign in to comment.