From d52a6588ade57c1934279571a312a27f33db2163 Mon Sep 17 00:00:00 2001 From: Kornel Date: Fri, 5 Jan 2024 03:04:42 +0000 Subject: [PATCH] Release --- Cargo.toml | 4 ++-- ravif/src/av1encoder.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)]