Skip to content

Commit 8c6675c

Browse files
gou4shi1maxsharabayko
authored andcommitted
[core] Fixed some wrong usages of m_iMaxSeqNo.
1 parent 18c829a commit 8c6675c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

srtcore/core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8652,7 +8652,7 @@ void srt::CUDT::processCtrlLossReport(const CPacket& ctrlpkt)
86528652

86538653
// This variable is used in "normal" logs, so it may cause a warning
86548654
// when logging is forcefully off.
8655-
int32_t wrong_loss SRT_ATR_UNUSED = CSeqNo::m_iMaxSeqNo;
8655+
int32_t wrong_loss SRT_ATR_UNUSED = SRT_SEQNO_NONE;
86568656

86578657
// protect packet retransmission
86588658
{

srtcore/fec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class FECFilterBuiltin: public SrtPacketFilterBase
4747
size_t drop; //< by how much the sequence should increase to get to the next series
4848
size_t collected; //< how many packets were taken to collect the clip
4949

50-
Group(): base(CSeqNo::m_iMaxSeqNo), step(0), drop(0), collected(0)
50+
Group(): base(SRT_SEQNO_NONE), step(0), drop(0), collected(0)
5151
{
5252
}
5353

@@ -87,7 +87,7 @@ class FECFilterBuiltin: public SrtPacketFilterBase
8787
#if ENABLE_HEAVY_LOGGING
8888
std::string DisplayStats()
8989
{
90-
if (base == CSeqNo::m_iMaxSeqNo)
90+
if (base == SRT_SEQNO_NONE)
9191
return "UNINITIALIZED!!!";
9292

9393
std::ostringstream os;

0 commit comments

Comments
 (0)