提交 56e1e9c8 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5202

上级 a65a03a7
...@@ -195,7 +195,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len) ...@@ -195,7 +195,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
s->rx[x].fec_len[0] = 0; s->rx[x].fec_len[0] = 0;
s->rx[x].fec_span = 0; s->rx[x].fec_span = 0;
s->rx[x].fec_entries = 0; s->rx[x].fec_entries = 0;
if ((buf[ptr++] & 0x80) == 0) { if ((buf[ptr++] & 0x80) q== 0) {
/* Secondary packet mode for error recovery */ /* Secondary packet mode for error recovery */
/* We might have the packet we want, but we need to check through /* We might have the packet we want, but we need to check through
the redundant stuff, and verify the integrity of the UDPTL. the redundant stuff, and verify the integrity of the UDPTL.
...@@ -228,6 +228,9 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len) ...@@ -228,6 +228,9 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
/* Save the new packet. Redundancy mode won't use this, but some systems will switch into /* Save the new packet. Redundancy mode won't use this, but some systems will switch into
FEC mode after sending some redundant packets, and this may then be important. */ FEC mode after sending some redundant packets, and this may then be important. */
x = (seq_no - i) & UDPTL_BUF_MASK; x = (seq_no - i) & UDPTL_BUF_MASK;
if (!bufs[i - 1]) {
return -1;
}
memcpy(s->rx[x].buf, bufs[i - 1], lengths[i - 1]); memcpy(s->rx[x].buf, bufs[i - 1], lengths[i - 1]);
s->rx[x].buf_len = lengths[i - 1]; s->rx[x].buf_len = lengths[i - 1];
s->rx[x].fec_len[0] = 0; s->rx[x].fec_len[0] = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论