From faefc98ada024d92a10312a0028c13614d95eda7 Mon Sep 17 00:00:00 2001 From: kura <86100095+kura979@users.noreply.github.com> Date: Fri, 16 Feb 2024 18:47:06 +0900 Subject: [PATCH] [core] Fixed RCV loss list inserting a seqno with a big distance after the largest seqno (#2877). --- srtcore/list.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srtcore/list.cpp b/srtcore/list.cpp index 0a175ee9d..0fe7d2b4b 100644 --- a/srtcore/list.cpp +++ b/srtcore/list.cpp @@ -653,6 +653,8 @@ bool srt::CRcvLossList::remove(int32_t seqno) } m_iLength--; + if (m_iLength == 0) + m_iLargestSeq = SRT_SEQNO_NONE; return true; } @@ -708,6 +710,8 @@ bool srt::CRcvLossList::remove(int32_t seqno) } m_iLength--; + if (m_iLength == 0) + m_iLargestSeq = SRT_SEQNO_NONE; return true; }