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

@ -157,7 +157,7 @@ int SrsRawH264Stream::mux_sequence_header(string sps, string pps, u_int32_t dts,
+ 3 + (int)sps.length()
+ 3 + (int)pps.length();
char* packet = new char[nb_packet];
SrsAutoFree(char, packet);
SrsAutoFreeA(char, packet);
// use stream to generate the h264 packet.
SrsStream stream;
@ -236,7 +236,7 @@ int SrsRawH264Stream::mux_ipb_frame(char* frame, int nb_frame, string& ibp)
// NALUnit
int nb_packet = 4 + nb_frame;
char* packet = new char[nb_packet];
SrsAutoFree(char, packet);
SrsAutoFreeA(char, packet);
// use stream to generate the h264 packet.
SrsStream stream;