Revert "vpx use webrtc parameter"

This reverts commit d23fd902d7.
This commit is contained in:
21pages
2023-07-18 13:49:52 +08:00
parent 22ca7177a6
commit 633c80d5e4
5 changed files with 88 additions and 377 deletions

View File

@@ -78,7 +78,7 @@ mod webrtc {
} else {
// Use 2 threads for low res on ARM.
#[cfg(any(target_arch = "arm", target_arch = "aarch64", target_os = "android"))]
if width * height >= 320 * 180 && number_of_cores > 2 {
if (width * height >= 320 * 180 && number_of_cores > 2) {
return 2;
}
// 1 thread less than VGA.