do not drop packet in mode 1

This commit is contained in:
wangyu- 2017-11-07 03:54:54 -06:00
parent 214d3afa98
commit 057d5262a4

View File

@ -229,8 +229,8 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
} }
if(fec_mode==1&&s!=0&&len>fec_mtu) if(fec_mode==1&&s!=0&&len>fec_mtu)
{ {
mylog(log_warn,"message too long len=%d fec_mtu=%d,ignored\n",len,fec_mtu); mylog(log_warn,"mode==1,message len=%d,fec_mtu=%d,len>fec_mtu,packet may not be able to deliver\n",len,fec_mtu);
return -1; //return -1;
} }
if(s==0&&counter==0) if(s==0&&counter==0)
{ {