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

for #515, use SrsAutoFreeA to free the array.

This commit is contained in:
winlin 2015-11-02 11:26:37 +08:00
parent 2af7749771
commit f4f76cd196
13 changed files with 53 additions and 36 deletions

View file

@ -914,7 +914,7 @@ int SrsAvcAacCodec::avc_demux_sps()
// decode the rbsp from sps.
// rbsp[ i ] a raw byte sequence payload is specified as an ordered sequence of bytes.
int8_t* rbsp = new int8_t[sequenceParameterSetLength];
SrsAutoFree(int8_t, rbsp);
SrsAutoFreeA(int8_t, rbsp);
int nb_rbsp = 0;
while (!stream.empty()) {

View file

@ -387,7 +387,7 @@ int SrsTsContext::encode_pat_pmt(SrsFileWriter* writer, int16_t vpid, SrsTsStrea
SrsAutoFree(SrsTsPacket, pkt);
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();
@ -412,7 +412,7 @@ int SrsTsContext::encode_pat_pmt(SrsFileWriter* writer, int16_t vpid, SrsTsStrea
SrsAutoFree(SrsTsPacket, pkt);
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();
@ -485,7 +485,7 @@ int SrsTsContext::encode_pes(SrsFileWriter* writer, SrsTsMessage* msg, int16_t p
SrsAutoFree(SrsTsPacket, pkt);
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();