Merge branch 'master' of github.com-rustdesk:rustdesk/rustdesk

This commit is contained in:
rustdesk
2021-12-24 19:13:38 +08:00
2 changed files with 2 additions and 6 deletions

View File

@@ -188,11 +188,7 @@ fn run(sp: GenericService) -> ResultType<()> {
speed,
};
let mut vpx;
let mut n = ((width * height) as f64 / (1920 * 1080) as f64).round() as u32;
if n < 1 {
n = 1;
}
match Encoder::new(&cfg, n) {
match Encoder::new(&cfg, 0) {
Ok(x) => vpx = x,
Err(err) => bail!("Failed to create encoder: {}", err),
}