winlin

remove the free bytes api of srs-librtmp. use system default is ok.

@@ -1743,11 +1743,6 @@ void srs_amf0_free(srs_amf0_t amf0) @@ -1743,11 +1743,6 @@ void srs_amf0_free(srs_amf0_t amf0)
1743 srs_freep(any); 1743 srs_freep(any);
1744 } 1744 }
1745 1745
1746 -void srs_amf0_free_bytes(char* data)  
1747 -{  
1748 - srs_freep(data);  
1749 -}  
1750 -  
1751 int srs_amf0_size(srs_amf0_t amf0) 1746 int srs_amf0_size(srs_amf0_t amf0)
1752 { 1747 {
1753 SrsAmf0Any* any = (SrsAmf0Any*)amf0; 1748 SrsAmf0Any* any = (SrsAmf0Any*)amf0;
@@ -2389,7 +2384,7 @@ int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* data, int @@ -2389,7 +2384,7 @@ int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* data, int
2389 2384
2390 char* amf0_str = NULL; 2385 char* amf0_str = NULL;
2391 srs_human_raw("%s", srs_human_amf0_print(amf0, &amf0_str, NULL)); 2386 srs_human_raw("%s", srs_human_amf0_print(amf0, &amf0_str, NULL));
2392 - srs_amf0_free_bytes(amf0_str); 2387 + srs_freep(amf0_str);
2393 } 2388 }
2394 } else { 2389 } else {
2395 srs_human_trace("Unknown packet type=%s, dts=%d, pts=%d, size=%d", 2390 srs_human_trace("Unknown packet type=%s, dts=%d, pts=%d, size=%d",
@@ -608,7 +608,6 @@ extern srs_amf0_t srs_amf0_create_ecma_array(); @@ -608,7 +608,6 @@ extern srs_amf0_t srs_amf0_create_ecma_array();
608 extern srs_amf0_t srs_amf0_create_strict_array(); 608 extern srs_amf0_t srs_amf0_create_strict_array();
609 extern srs_amf0_t srs_amf0_create_object(); 609 extern srs_amf0_t srs_amf0_create_object();
610 extern void srs_amf0_free(srs_amf0_t amf0); 610 extern void srs_amf0_free(srs_amf0_t amf0);
611 -extern void srs_amf0_free_bytes(char* data);  
612 /* size and to bytes */ 611 /* size and to bytes */
613 extern int srs_amf0_size(srs_amf0_t amf0); 612 extern int srs_amf0_size(srs_amf0_t amf0);
614 extern int srs_amf0_serialize(srs_amf0_t amf0, char* data, int size); 613 extern int srs_amf0_serialize(srs_amf0_t amf0, char* data, int size);