Skip to content

Commit

Permalink
Clone a fec_parameter_t with fec changed only
Browse files Browse the repository at this point in the history
  • Loading branch information
wwbfred authored Jul 2, 2022
1 parent fd72361 commit 3b1b5d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fec_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b1b5d3

Please sign in to comment.