disable av1 for all 32 bit platforms (#7921)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-05-06 23:09:09 +08:00 committed by GitHub
parent 0af370d736
commit 4e30418f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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::<usize>() == 4
}