mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-19 06:19:34 +08:00
rework pr
This commit is contained in:
parent
dab380366d
commit
43dfb12d9e
@ -190,14 +190,12 @@ struct fec_parameter_t
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int clone_fec(fec_parameter_t & other)
|
int copy_fec(fec_parameter_t & other)
|
||||||
{
|
{
|
||||||
assert(other.rs_cnt>=1);
|
assert(other.rs_cnt>=1);
|
||||||
rs_cnt=other.rs_cnt;
|
rs_cnt=other.rs_cnt;
|
||||||
memcpy(rs_par,other.rs_par,sizeof(rs_parameter_t)*rs_cnt);
|
memcpy(rs_par,other.rs_par,sizeof(rs_parameter_t)*rs_cnt);
|
||||||
|
|
||||||
version++;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
4
misc.cpp
4
misc.cpp
@ -292,7 +292,9 @@ int handle_command(char *s)
|
|||||||
mylog(log_warn,"failed to parse [%s]\n",tmp_str);
|
mylog(log_warn,"failed to parse [%s]\n",tmp_str);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
g_fec_par.clone_fec(tmp_par);
|
int version=g_fec_par.version;
|
||||||
|
g_fec_par.copy_fec(tmp_par);
|
||||||
|
g_fec_par.version=version+1;
|
||||||
strcpy(rs_par_str,tmp_str);
|
strcpy(rs_par_str,tmp_str);
|
||||||
//g_fec_data_num=a;
|
//g_fec_data_num=a;
|
||||||
//g_fec_redundant_num=b;
|
//g_fec_redundant_num=b;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user