Skip to content

Commit

Permalink
not use av1 as auto codec on x86 sciter (rustdesk#7714)
Browse files Browse the repository at this point in the history
Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Apr 13, 2024
1 parent 71c4d74 commit 5c4d95a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/scrap/src/common/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c4d95a

Please sign in to comment.