完善代码

This commit is contained in:
xiongziliang
2020-04-24 15:28:27 +08:00
parent e85a8f277e
commit f222af2632
3 changed files with 5 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ static inline bool checkTS(const uint8_t *packet, int bytes){
}
void RtpProcess::onRtpSorted(const RtpPacket::Ptr &rtp, int) {
if(rtp->sequence != _sequence + 1){
if(rtp->sequence != _sequence + 1 && rtp->sequence != 0){
WarnP(this) << rtp->sequence << " != " << _sequence << "+1";
}
_sequence = rtp->sequence;