1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix no maker one frame check

This commit is contained in:
kyxlx550 2020-06-08 18:26:08 +08:00
parent 2172209321
commit 813c83ccc7

View file

@ -1313,7 +1313,8 @@ bool SrsPsJitterBuffer::NextMaybeIncompleteTimestamp(uint32_t* timestamp)
next_frame = incomplete_frames_.FrontNext();
if (oldest_frame_state != kStateComplete && next_frame &&
((oldest_frame->GetHighSeqNum()+20) % 65536) >= next_frame->GetLowSeqNum()){
IsNewerSequenceNumber(next_frame->GetLowSeqNum(), oldest_frame->GetHighSeqNum()) &&
next_frame->NumPackets() > 0 ) {
oldest_frame_state = kStateComplete;
}