Bump mozjpeg

This commit is contained in:
Matteo Paonessa 2024-06-12 17:32:29 +02:00
parent 2a4336c46e
commit b52c7e33b4
2 changed files with 3 additions and 3 deletions

View File

@ -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 }

View File

@ -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) {}