mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix double free bug for RTP
This commit is contained in:
parent
ce36a970ff
commit
b1df04cb09
3 changed files with 3 additions and 12 deletions
|
@ -478,6 +478,7 @@ SrsRtcPackets::SrsRtcPackets(int nn_cache_max)
|
|||
|
||||
cursor = 0;
|
||||
nn_cache = nn_cache_max;
|
||||
// TODO: FIXME: We should allocate a smaller cache, and increase it when exhausted.
|
||||
cache = new SrsRtpPacket2[nn_cache];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue