update crates, and set new default #cpu

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

No files matched your search

+1 -1
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(),
}
}