1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

Fix RTP packet cache bug

This commit is contained in:
winlin 2020-04-16 08:30:57 +08:00
parent 1064429c7e
commit 7d1be87124

View file

@ -475,7 +475,12 @@ SrsRtcPackets::SrsRtcPackets()
SrsRtcPackets::~SrsRtcPackets()
{
reset(use_gso, should_merge_nalus);
vector<SrsRtpPacket2*>::iterator it;
for (it = packets.begin(); it != packets.end(); ++it) {
SrsRtpPacket2* p = *it;
srs_freep(p);
}
packets.clear();
}
void SrsRtcPackets::reset(bool gso, bool merge_nalus)