From 3fe2de0ae04368e11fa8905717b459b9c9243a65 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Mon, 16 Dec 2024 21:32:48 +0800 Subject: [PATCH] use correct format for screenshots --- apps/desktop/src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index 20ac96ca..93cd3dee 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -499,7 +499,7 @@ async fn create_screenshot( decoder.format(), decoder.width(), decoder.height(), - ffmpeg::format::Pixel::YUV420P, + ffmpeg::format::Pixel::RGB24, size.map_or(decoder.width(), |s| s.0), size.map_or(decoder.height(), |s| s.1), ffmpeg::software::scaling::flag::Flags::BILINEAR,