Give higher priority to AV1 over VP9 in the auto codec
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
34d64fbcaf
commit
bdb1fc2ed7
@ -195,6 +195,9 @@ impl Encoder {
|
|||||||
|
|
||||||
#[allow(unused_mut)]
|
#[allow(unused_mut)]
|
||||||
let mut auto_codec = CodecName::VP9;
|
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 {
|
if vp8_useable && System::new_all().total_memory() <= 4 * 1024 * 1024 * 1024 {
|
||||||
// 4 Gb
|
// 4 Gb
|
||||||
auto_codec = CodecName::VP8
|
auto_codec = CodecName::VP8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user