Merge pull request #5841 from 21pages/av1_auto_codec

Give higher priority to AV1 over VP9 in the auto codec
This commit is contained in:
RustDesk 2023-09-27 18:50:18 +08:00 committed by GitHub
commit 8756ae0fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,9 @@ impl Encoder {
#[allow(unused_mut)]
let mut auto_codec = CodecName::VP9;
if av1_useable {
auto_codec = CodecName::AV1;
}
if vp8_useable && System::new_all().total_memory() <= 4 * 1024 * 1024 * 1024 {
// 4 Gb
auto_codec = CodecName::VP8