mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Parse PT fast and refine udp handler. 4.0.69
This commit is contained in:
parent
826546d518
commit
79a6907a65
8 changed files with 62 additions and 35 deletions
|
@ -60,6 +60,7 @@ class SrsSharedPtrMessage;
|
|||
|
||||
// Fast parse the SSRC from RTP packet. Return 0 if invalid.
|
||||
uint32_t srs_rtp_fast_parse_ssrc(char* buf, int size);
|
||||
uint8_t srs_rtp_fast_parse_pt(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue