mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
修正对非 uint16_t 序号的支持
This commit is contained in:
parent
892b2d2ef9
commit
ac01dc97af
@ -67,7 +67,7 @@ public:
|
|||||||
//过滤seq回退包(回环包除外)
|
//过滤seq回退包(回环包除外)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (_next_seq_out && seq - _next_seq_out > (0xFFFF >> 1)) {
|
} else if (_next_seq_out && seq - _next_seq_out > (std::numeric_limits<SEQ>::max() >> 1)) {
|
||||||
//过滤seq跳变非常大的包(防止回环时乱序时收到非常大的seq)
|
//过滤seq跳变非常大的包(防止回环时乱序时收到非常大的seq)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user