Skip to content

Commit

Permalink
fix fuzz test
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Feb 19, 2024
1 parent df271ef commit bb36ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/fuzzers/fuzzer_script_exr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate image;

use image::codecs::openexr::*;
use image::io::Limits;
use image::ColorType;
use image::ExtendedColorType;
use image::ImageDecoder;
use image::ImageEncoder;
use image::ImageResult;
Expand Down Expand Up @@ -45,7 +45,7 @@ fn roundtrip(bytes: &[u8]) -> ImageResult<()> {
write: impl Write + Seek,
(width, height, data): &(u32, u32, Vec<u8>),
) -> ImageResult<()> {
OpenExrEncoder::new(write).write_image(data.as_slice(), *width, *height, ColorType::Rgba32F)
OpenExrEncoder::new(write).write_image(data.as_slice(), *width, *height, ExtendedColorType::Rgba32F)
}

let decoded_image = read_as_rgba_byte_image(Cursor::new(bytes))?;
Expand Down

0 comments on commit bb36ddc

Please sign in to comment.