diff --git a/Cargo.lock b/Cargo.lock index a9a5a85..b008358 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "yuvutils-rs" -version = "0.1.1" +version = "0.1.2" diff --git a/src/yuv_to_rgba.rs b/src/yuv_to_rgba.rs index f2105fd..b56ed04 100644 --- a/src/yuv_to_rgba.rs +++ b/src/yuv_to_rgba.rs @@ -58,11 +58,11 @@ fn yuv_to_rgbx( #[allow(unused_mut)] let mut cx = 0usize; - let mut uv_x = 0usize; - #[cfg(any(target_arch = "arm", target_arch = "aarch64"))] #[cfg(target_feature = "neon")] unsafe { + let mut uv_x = 0usize; + let y_ptr = y_plane.as_ptr(); let u_ptr = u_plane.as_ptr(); let v_ptr = v_plane.as_ptr();