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

SquashSRS4: Update comments and performance data

This commit is contained in:
winlin 2021-03-31 18:25:12 +08:00
parent 4692e8b8ad
commit 45b83bd22e
3 changed files with 19 additions and 1 deletions

View file

@ -294,8 +294,10 @@ private:
private:
// The original shared message, all RTP packets can refer to its data.
// Note that the size of shared msg, is not the packet size, it's a larger aligned buffer.
// @remark Note that it may point to the whole RTP packet(for RTP parser, which decode RTP packet from buffer),
// and it may point to the RTP payload(for RTMP to RTP, which build RTP header and payload).
SrsSharedPtrMessage* shared_buffer_;
// The size of original packet.
// The size of RTP packet or RTP payload.
int actual_buffer_size_;
// Helper fields.
public:
@ -333,6 +335,7 @@ public:
// Parse the TWCC extension, ignore by default.
void enable_twcc_decode() { header.enable_twcc_decode(); } // SrsRtpPacket2::enable_twcc_decode
// Get and set the payload of packet.
// @remark Note that return NULL if no payload.
void set_payload(ISrsRtpPayloader* p, SrsRtpPacketPayloadType pt) { payload_ = p; payload_type_ = pt; }
ISrsRtpPayloader* payload() { return payload_; }
// Set the padding of RTP packet.