优化rtp排序抖动缓存算法,提高webrtc/rtsp抗丢包性能

This commit is contained in:
xiongziliang
2023-03-05 23:24:55 +08:00
parent 4942a0f574
commit 9fdb3de8b2
3 changed files with 59 additions and 76 deletions

View File

@@ -102,7 +102,7 @@ void test_real() {
PacketSortor<uint16_t, uint16_t> sortor;
list<uint16_t> sorted_list;
sortor.setOnSort([&](uint16_t seq, const uint16_t &packet) {
sortor.setOnSort([&](uint16_t seq, uint16_t packet) {
sorted_list.push_back(seq);
});