Skip to content

Commit

Permalink
[core] Fixed RCV loss list inserting a seqno with a big distance afte…
Browse files Browse the repository at this point in the history
…r the largest seqno (#2877).
  • Loading branch information
kura979 committed Feb 16, 2024
1 parent 8b73dbc commit faefc98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions srtcore/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ bool srt::CRcvLossList::remove(int32_t seqno)
}

m_iLength--;
if (m_iLength == 0)
m_iLargestSeq = SRT_SEQNO_NONE;

return true;
}
Expand Down Expand Up @@ -708,6 +710,8 @@ bool srt::CRcvLossList::remove(int32_t seqno)
}

m_iLength--;
if (m_iLength == 0)
m_iLargestSeq = SRT_SEQNO_NONE;

return true;
}
Expand Down

0 comments on commit faefc98

Please sign in to comment.