update crates, and set new default #cpu

This commit is contained in:
rustdesk
2022-01-24 02:26:07 +08:00
parent 98aa410683
commit a3511d9157
6 changed files with 80 additions and 74 deletions

View File

@@ -638,7 +638,7 @@ pub struct VideoHandler {
impl VideoHandler {
pub fn new() -> Self {
VideoHandler {
decoder: Decoder::new(VideoCodecId::VP9, 0).unwrap(),
decoder: Decoder::new(VideoCodecId::VP9, (num_cpus::get() / 2) as _).unwrap(),
rgb: Default::default(),
}
}