1
0
Fork 0
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:
winlin 2021-02-28 08:23:35 +08:00
parent 11454b3ced
commit eb9a263433
2 changed files with 19 additions and 2 deletions

View file

@ -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: