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

For #307, refine performance

This commit is contained in:
winlin 2020-04-18 20:37:08 +08:00
parent 9e031c9932
commit c93cd86ce4
11 changed files with 323 additions and 175 deletions

View file

@ -155,9 +155,10 @@ public:
int nn_dropped;
private:
int cursor;
std::vector<SrsRtpPacket2*> packets;
int nn_cache;
SrsRtpPacket2* cache;
public:
SrsRtcPackets();
SrsRtcPackets(int nn_cache_max);
virtual ~SrsRtcPackets();
public:
void reset(bool gso, bool merge_nalus);