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

Cache RTP packets

This commit is contained in:
winlin 2020-04-15 22:46:06 +08:00
parent 7b68f55edc
commit 1064429c7e
4 changed files with 94 additions and 53 deletions

View file

@ -88,7 +88,9 @@ public:
virtual ~SrsRtpPacket2();
public:
// Append size of bytes as padding.
virtual void set_padding(int size);
void set_padding(int size);
// Reset RTP packet.
void reset();
// interface ISrsEncoder
public:
virtual int nb_bytes();