diff --git a/Cargo.toml b/Cargo.toml index 9ccc54e..c3554ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cavif" description = "Encodes images in AVIF format (image2avif converter) using a pure-Rust encoder." -version = "1.5.4" +version = "1.5.5" authors = ["Kornel LesiƄski "] edition = "2021" license = "BSD-3-Clause" @@ -14,7 +14,7 @@ include = ["README.md", "LICENSE", "Cargo.toml", "/src/*.rs"] rust-version = "1.64" [dependencies] -ravif = { version = "0.11.2", path = "./ravif", default-features = false } +ravif = { version = "0.11.3", path = "./ravif", default-features = false } rayon = "1.7.0" rgb = "0.8.36" cocoa_image = { version = "1.0.6", optional = true } diff --git a/ravif/src/av1encoder.rs b/ravif/src/av1encoder.rs index 8d940bb..ef94d98 100644 --- a/ravif/src/av1encoder.rs +++ b/ravif/src/av1encoder.rs @@ -395,7 +395,7 @@ fn encode_raw_planes(&self, width: usize, height: usi #[inline(always)] fn to_ten(x: u8) -> u16 { - ((x as u16) << 2) | ((x as u16) >> 6) + (u16::from(x) << 2) | (u16::from(x) >> 6) } #[inline(always)]