Skip to content

Commit

Permalink
Bump mozjpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymphatus committed Jun 12, 2024
1 parent 2a4336c commit b52c7e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tiff = ["image/tiff"]
parallel = ["oxipng?/parallel", "imagequant?/threads", "dssim/threads"]

[dependencies]
mozjpeg-sys = { version = "1.1", optional = true }
mozjpeg-sys = { version = "2.2", optional = true }
oxipng = { version = "9.0", default-features = false, features = ["filetime", "zopfli"], optional = true }
libc = "0.2"
gifsicle = { version = "1.94", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/jpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ unsafe fn set_chroma_subsampling(
}
}

unsafe extern "C" fn error_handler(cinfo: &mut jpeg_common_struct) {
unsafe extern "C-unwind" fn error_handler(cinfo: &mut jpeg_common_struct) {
JPEG_ERROR = (*cinfo.err).msg_code;
panic!("Internal JPEG error: {}", JPEG_ERROR);
}

unsafe extern "C" fn error_message_handler(_cinfo: &mut jpeg_common_struct) {}
unsafe extern "C-unwind" fn error_message_handler(_cinfo: &mut jpeg_common_struct) {}

0 comments on commit b52c7e3

Please sign in to comment.