mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #515, merge from srs2, use SrsAutoFreeA.
This commit is contained in:
parent
604486b0a3
commit
f57e537686
14 changed files with 54 additions and 37 deletions
|
@ -395,7 +395,7 @@ int SrsTsContext::encode_pat_pmt(SrsFileWriter* writer, int16_t vpid, SrsTsStrea
|
|||
pkt->sync_byte = sync_byte;
|
||||
|
||||
char* buf = new char[SRS_TS_PACKET_SIZE];
|
||||
SrsAutoFree(char, buf);
|
||||
SrsAutoFreeA(char, buf);
|
||||
|
||||
// set the left bytes with 0xFF.
|
||||
int nb_buf = pkt->size();
|
||||
|
@ -422,7 +422,7 @@ int SrsTsContext::encode_pat_pmt(SrsFileWriter* writer, int16_t vpid, SrsTsStrea
|
|||
pkt->sync_byte = sync_byte;
|
||||
|
||||
char* buf = new char[SRS_TS_PACKET_SIZE];
|
||||
SrsAutoFree(char, buf);
|
||||
SrsAutoFreeA(char, buf);
|
||||
|
||||
// set the left bytes with 0xFF.
|
||||
int nb_buf = pkt->size();
|
||||
|
@ -497,7 +497,7 @@ int SrsTsContext::encode_pes(SrsFileWriter* writer, SrsTsMessage* msg, int16_t p
|
|||
pkt->sync_byte = sync_byte;
|
||||
|
||||
char* buf = new char[SRS_TS_PACKET_SIZE];
|
||||
SrsAutoFree(char, buf);
|
||||
SrsAutoFreeA(char, buf);
|
||||
|
||||
// set the left bytes with 0xFF.
|
||||
int nb_buf = pkt->size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue