This commit is contained in:
Steve Underwood 2013-10-19 18:51:50 +08:00
parent 8ea0bc73a9
commit eee96c60c9
2 changed files with 10 additions and 4 deletions

View File

@ -696,8 +696,12 @@
<ClInclude Include="spandsp.h"> <ClInclude Include="spandsp.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="spandsp\t4_t6_decode.h" /> <ClInclude Include="spandsp\t4_t6_decode.h">
<ClInclude Include="spandsp\t4_t6_encode.h" /> <Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="spandsp\t4_t6_encode.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="spandsp\ademco_contactid.h"> <ClInclude Include="spandsp\ademco_contactid.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>

View File

@ -205,6 +205,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
/* Save the new packet. Pure redundancy mode won't use this, but some systems will switch /* Save the new packet. Pure redundancy mode won't use this, but some systems will switch
into FEC mode after sending some redundant packets. */ into FEC mode after sending some redundant packets. */
x = seq_no & UDPTL_BUF_MASK; x = seq_no & UDPTL_BUF_MASK;
if (msg_len > 0)
memcpy(s->rx[x].buf, msg, msg_len); memcpy(s->rx[x].buf, msg, msg_len);
s->rx[x].buf_len = msg_len; s->rx[x].buf_len = msg_len;
s->rx[x].fec_len[0] = 0; s->rx[x].fec_len[0] = 0;
@ -288,6 +289,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
return -1; return -1;
/* Save the new FEC data */ /* Save the new FEC data */
if (s->rx[x].fec_len[i])
memcpy(s->rx[x].fec[i], data, s->rx[x].fec_len[i]); memcpy(s->rx[x].fec[i], data, s->rx[x].fec_len[i]);
#if 0 #if 0
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "FEC: "); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "FEC: ");