mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-31 20:29:37 +08:00
fixed a warn of last commit
This commit is contained in:
parent
3fd198a1e2
commit
f58dfe4fdd
@ -283,7 +283,7 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
|
|||||||
for(int i=1;i<actual_data_num;i++)
|
for(int i=1;i<actual_data_num;i++)
|
||||||
{
|
{
|
||||||
u32_t shard_len=blob_encode.get_shard_len(i,0);
|
u32_t shard_len=blob_encode.get_shard_len(i,0);
|
||||||
if(shard_len>fec_mtu) continue;
|
if(shard_len>(u32_t)fec_mtu) continue;
|
||||||
|
|
||||||
u32_t new_len=(shard_len+header_overhead)*(i+fec_redundant_num);
|
u32_t new_len=(shard_len+header_overhead)*(i+fec_redundant_num);
|
||||||
if(new_len<best_len)
|
if(new_len<best_len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user