From 9336246f00ab6ab29c5511a6991a148512da554a Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 18 Nov 2017 00:01:21 -0600 Subject: [PATCH] fixed a possible MTU issue when redundant num=0 --- fec_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fec_manager.cpp b/fec_manager.cpp index e6702cb..18b54d6 100644 --- a/fec_manager.cpp +++ b/fec_manager.cpp @@ -282,7 +282,10 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/) int best_data_num=fec_data_num; for(int i=1;i(u32_t)fec_mtu) continue; + + u32_t new_len=(shard_len+header_overhead)*(i+fec_redundant_num); if(new_len