mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-12 18:44:25 +08:00
feat(rustdesk): 强化会话管理并优化流媒体传输
This commit is contained in:
@@ -91,6 +91,12 @@ impl VideoFrameAdapter {
|
||||
return data;
|
||||
}
|
||||
|
||||
// Parameter sets are relevant only on random-access frames. Avoid a
|
||||
// full Annex-B/AVCC scan on every delta frame in every client session.
|
||||
if !is_keyframe {
|
||||
return data;
|
||||
}
|
||||
|
||||
let (sps, pps) = crate::video::codec::h264_bitstream::extract_sps_pps(&data);
|
||||
let mut has_sps = false;
|
||||
let mut has_pps = false;
|
||||
|
||||
Reference in New Issue
Block a user