mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fast parse ssrc and find the publisher
This commit is contained in:
parent
cd06f2da0c
commit
80985c7307
3 changed files with 39 additions and 10 deletions
|
@ -58,6 +58,9 @@ class SrsRtpRawPayload;
|
|||
class SrsRtpFUAPayload2;
|
||||
class SrsSharedPtrMessage;
|
||||
|
||||
// Fast parse the SSRC from RTP packet. Return 0 if invalid.
|
||||
uint32_t srs_rtp_fast_parse_ssrc(char* buf, int size);
|
||||
|
||||
// The "distance" between two uint16 number, for example:
|
||||
// distance(prev_value=3, value=5) === (int16_t)(uint16_t)((uint16_t)3-(uint16_t)5) === -2
|
||||
// distance(prev_value=3, value=65534) === (int16_t)(uint16_t)((uint16_t)3-(uint16_t)65534) === 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue