mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 22:55:52 +08:00
修复seq溢出时的日志误报:#418
This commit is contained in:
parent
7f8aa7b3d6
commit
85f28ce1f0
@ -111,7 +111,7 @@ static inline bool checkTS(const uint8_t *packet, int bytes){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RtpProcess::onRtpSorted(const RtpPacket::Ptr &rtp, int) {
|
void RtpProcess::onRtpSorted(const RtpPacket::Ptr &rtp, int) {
|
||||||
if(rtp->sequence != _sequence + 1 && _sequence != 0){
|
if(rtp->sequence != _sequence + (uint16_t)1 && _sequence != 0){
|
||||||
WarnP(this) << "rtp丢包:" << rtp->sequence << " != " << _sequence << "+1" << ",公网环境下请使用tcp方式推流";
|
WarnP(this) << "rtp丢包:" << rtp->sequence << " != " << _sequence << "+1" << ",公网环境下请使用tcp方式推流";
|
||||||
}
|
}
|
||||||
_sequence = rtp->sequence;
|
_sequence = rtp->sequence;
|
||||||
|
Loading…
Reference in New Issue
Block a user