set vp9 as auto codec (#7928)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-05-07 15:20:55 +08:00 committed by GitHub
parent 4e30418f79
commit 51813b7d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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