mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
supprot ps jitbuffer different timestamp of audio and video
This commit is contained in:
parent
a617d362da
commit
5864ea3472
3 changed files with 73 additions and 7 deletions
|
@ -306,11 +306,11 @@ PsFrameBufferEnum SrsPsFrameBuffer::InsertPacket(const VCMPacket& packet, const
|
|||
}
|
||||
|
||||
//TODO: not check marker, check a complete frame with timestamp
|
||||
// if (packet.markerBit &&
|
||||
// (last_packet_seq_num_ == -1 ||
|
||||
// IsNewerSequenceNumber(packet.seqNum, last_packet_seq_num_))) {
|
||||
// last_packet_seq_num_ = packet.seqNum;
|
||||
// }
|
||||
if (packet.markerBit &&
|
||||
(last_packet_seq_num_ == -1 ||
|
||||
IsNewerSequenceNumber(packet.seqNum, last_packet_seq_num_))) {
|
||||
last_packet_seq_num_ = packet.seqNum;
|
||||
}
|
||||
|
||||
// The insert operation invalidates the iterator |rit|.
|
||||
PacketIterator packet_list_it = packets_.insert(rit.base(), packet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue