Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(rendering): gate RGBA to NV12 bounds check to x86

Kyzeraf48fba63d50
diff --git a/crates/rendering/src/cpu_yuv.rs b/crates/rendering/src/cpu_yuv.rs
index 1b59f81a7..c2c0ed237 100644
--- a/crates/rendering/src/cpu_yuv.rs
+++ b/crates/rendering/src/cpu_yuv.rs
@@ -163,6 +163,7 @@ unsafe fn rgba_to_nv12_avx2(
}
}
+#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
fn rgba_nv12_bounds_ok(
src_len: usize,
src_stride: usize,