From 4e30418f79cbfe6b184b9610d06666e91f8360fc Mon Sep 17 00:00:00 2001 From: 21pages Date: Mon, 6 May 2024 23:09:09 +0800 Subject: [PATCH] disable av1 for all 32 bit platforms (#7921) Signed-off-by: 21pages --- libs/scrap/src/common/codec.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/scrap/src/common/codec.rs b/libs/scrap/src/common/codec.rs index a62565733..62b56b158 100644 --- a/libs/scrap/src/common/codec.rs +++ b/libs/scrap/src/common/codec.rs @@ -918,5 +918,6 @@ pub fn codec_thread_num(limit: usize) -> usize { fn disable_av1() -> bool { // aom is very slow for x86 sciter version on windows x64 - cfg!(windows) && std::env::consts::ARCH == "x86" + // disable it for all 32 bit platforms + std::mem::size_of::() == 4 }