Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fmt
Richie McIlroy923187edfb24
diff --git a/crates/recording/src/output_pipeline/win.rs b/crates/recording/src/output_pipeline/win.rsindex bb6e3c8a2..3683cb205 100644--- a/crates/recording/src/output_pipeline/win.rs+++ b/crates/recording/src/output_pipeline/win.rs@@ -1176,7 +1176,7 @@ fn infer_camera_buffer_layout(PixelFormat::MJPEG | PixelFormat::H264 => return None,};- if total_rows == 0 || data_len % total_rows != 0 {+ if total_rows == 0 || !data_len.is_multiple_of(total_rows) {return None;}@@ -1193,7 +1193,7 @@ fn infer_camera_buffer_layout(})}PixelFormat::YUV420P | PixelFormat::YV12 => {- if primary_stride < width || primary_stride % 2 != 0 {+ if primary_stride < width || !primary_stride.is_multiple_of(2) {return None;}let secondary_stride = primary_stride / 2;