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

RTC: Refactor API, use shared pkt for consumer

This commit is contained in:
winlin 2020-05-15 08:11:03 +08:00
parent 31de2c71d0
commit c7b88e08e9
5 changed files with 9 additions and 15 deletions

View file

@ -83,11 +83,6 @@ void SrsRtpRingBuffer::remove(uint16_t at)
set(at, NULL);
}
bool SrsRtpRingBuffer::overflow()
{
return srs_rtp_seq_distance(begin, end) >= capacity_;
}
uint32_t SrsRtpRingBuffer::get_extended_highest_sequence()
{
return nn_seq_flip_backs * 65536 + end - 1;