mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-18 13:59:34 +08:00
Clone a fec_parameter_t with fec changed only
This commit is contained in:
parent
fd72361dea
commit
3b1b5d32d6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user