mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
RTC: 修复一组丢包分多次nack发送时blp-vector没有被重置的问题 (#3016)
如果一组丢包,通过多个nack发送,那么多次执行blp_vec.resize(16, false)并不会重置元素值,这会导致blp_vec的丢包状态错乱,从而产生一些不必要的重传请求。
This commit is contained in:
parent
aacc95867f
commit
92e7d8837e
@ -258,7 +258,7 @@ uint64_t NackContext::reSendNack() {
|
|||||||
for (auto it = nack_rtp.begin(); it != nack_rtp.end();) {
|
for (auto it = nack_rtp.begin(); it != nack_rtp.end();) {
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
pid = *it;
|
pid = *it;
|
||||||
vec.resize(FCI_NACK::kBitSize, false);
|
vec.assign(FCI_NACK::kBitSize, false);
|
||||||
++it;
|
++it;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user