option decode-buf

This commit is contained in:
wangyu-
2017-10-18 07:03:52 -05:00
parent f992434063
commit a5c26c5814
3 changed files with 35 additions and 10 deletions

View File

@@ -17,6 +17,8 @@ const int decode_fast_send=1;
int short_packet_optimize=1;
int header_overhead=40;
u32_t fec_buff_num=2000;// how many packet can fec_decode_manager hold. shouldnt be very large,or it will cost huge memory
blob_encode_t::blob_encode_t()
{
clear();
@@ -465,11 +467,6 @@ int fec_encode_manager_t::output(int &n,char ** &s_arr,int *&len)
return 0;
}
fec_decode_manager_t::fec_decode_manager_t()
{
re_init();
}
int fec_decode_manager_t::re_init()
{
for(int i=0;i<(int)fec_buff_num;i++)