not use av1 as auto codec on x86 sciter (#7714)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-04-13 21:10:36 +08:00 committed by GitHub
parent 71c4d74759
commit 5c4d95ac0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -239,7 +239,8 @@ impl Encoder {
#[allow(unused_mut)]
let mut auto_codec = CodecName::VP9;
if av1_useable {
// aom is very slow for x86 sciter version on windows x64
if av1_useable && !(cfg!(windows) && std::env::consts::ARCH == "x86") {
auto_codec = CodecName::AV1;
}
let mut system = System::new();