修复nack/rtx发送时相关bug

This commit is contained in:
ziyue 2021-07-21 16:44:40 +08:00
parent da9d3a3b1f
commit 30840d8200

View File

@ -58,7 +58,7 @@ uint32_t NackList::get_cache_ms() {
}
uint32_t back = _nack_cache_pkt[_nack_cache_seq.back()]->getStampMS();
uint32_t front = _nack_cache_pkt[_nack_cache_seq.front()]->getStampMS();
if (back > front) {
if (back >= front) {
return back - front;
}
//很有可能回环了