From 8fd5118e6c32b7f843d79ec8fd4fd4ff92cbc6c7 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sun, 8 Oct 2017 11:09:36 -0500 Subject: [PATCH] doesnt work any more,no idea --- fec_manager.cpp | 11 ++++++----- fec_manager.h | 6 +++--- main.cpp | 25 ++++++++++--------------- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/fec_manager.cpp b/fec_manager.cpp index d571688..729a54a 100644 --- a/fec_manager.cpp +++ b/fec_manager.cpp @@ -172,20 +172,21 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/) buf[i][tmp_idx++]=(unsigned char)fec_data_num; buf[i][tmp_idx++]=(unsigned char)fec_redundant_num; buf[i][tmp_idx++]=(unsigned char)i; - output_buf[i]=buf[i]+tmp_idx; + output_buf[i]=buf[i]+tmp_idx; //////caution ,trick here. + output_len[i]=tmp_idx+blob_len; if(i",n,len); + printf("",n,len[0]); for(int i=0;i",n,len); + printf("",n,len[0]); for(int i=0;i