mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Cache RTP packet size, revert 9ee0ed919a
This commit is contained in:
parent
af0b50f54c
commit
314a6dbec6
2 changed files with 19 additions and 2 deletions
|
@ -315,7 +315,10 @@ public:
|
|||
SrsAvcNaluType nalu_type;
|
||||
// The frame type, for RTMP bridger or SFU source.
|
||||
SrsFrameType frame_type;
|
||||
// Fast cache for performance.
|
||||
private:
|
||||
// The cached payload size for packet.
|
||||
int cached_payload_size;
|
||||
// The helper handler for decoder, use RAW payload if NULL.
|
||||
ISrsRtpPacketDecodeHandler* decode_handler;
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue