fix bug for --fix-latency

This commit is contained in:
wangyu-
2017-10-18 10:09:50 -05:00
parent fa8ac0ac3b
commit 4cba1d36de
3 changed files with 11 additions and 6 deletions

View File

@@ -373,6 +373,7 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
assert(ready_for_output==0);
ready_for_output=1;
first_packet_time_for_output=first_packet_time;
first_packet_time=0;
seq++;
counter=0;
output_n=actual_data_num+actual_redundant_num;
@@ -413,9 +414,10 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
int input_buf_idx=counter-1;
assert(ready_for_output==0);
ready_for_output=1;
//first_packet_time_for_output=0;
first_packet_time_for_output=0;
output_n=1;
int tmp_idx=0;
write_u32(input_buf[input_buf_idx]+tmp_idx,seq);
tmp_idx+=sizeof(u32_t);