mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-09-15 03:37:29 +08:00
Clone a fec_parameter_t with fec changed only
This commit is contained in:
@@ -190,7 +190,14 @@ struct fec_parameter_t
|
||||
return 0;
|
||||
}
|
||||
|
||||
int clone_fec(fec_parameter_t & other)
|
||||
{
|
||||
assert(other.rs_cnt>=1);
|
||||
rs_cnt=other.rs_cnt;
|
||||
memcpy(rs_par,other.rs_par,sizeof(rs_parameter_t)*rs_cnt);
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
extern fec_parameter_t g_fec_par;
|
||||
|
Reference in New Issue
Block a user