From 30840d82007292bf113283c792f0ff8a3a2eab4d Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 21 Jul 2021 16:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnack/rtx=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=97=B6=E7=9B=B8=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Nack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/Nack.cpp b/webrtc/Nack.cpp index 2579cf01..18dde583 100644 --- a/webrtc/Nack.cpp +++ b/webrtc/Nack.cpp @@ -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; } //很有可能回环了