vpx use webrtc parameter

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-05-22 17:14:46 +08:00
parent 79a5c5a69d
commit d23fd902d7
5 changed files with 377 additions and 88 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.