Clone a fec_parameter_t with fec changed only

This commit is contained in:
Fred Wu 2022-07-02 15:48:39 +08:00 committed by GitHub
parent fd72361dea
commit 3b1b5d32d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;