aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJF Dionne <jf.dionne@nutaq.com>2016-09-16 13:13:57 -0400
committerJF Dionne <jf.dionne@nutaq.com>2016-09-16 13:13:57 -0400
commit0aef960571797c4245239e5d522bc1957d2520af (patch)
tree5ad74629b33f78a9f238227c8b303e971848eedf
parentc59bc6909daeb0a390cfc7c225bf346be8149108 (diff)
Corrects payload missing byte sent to Layer 1 for AMR speech and SID.
-rw-r--r--src/osmo-bts-litecell15/tch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-litecell15/tch.c b/src/osmo-bts-litecell15/tch.c
index 187f6884..22ba2145 100644
--- a/src/osmo-bts-litecell15/tch.c
+++ b/src/osmo-bts-litecell15/tch.c
@@ -273,13 +273,13 @@ static int rtppayload_to_l1_amr(uint8_t *l1_payload, const uint8_t *rtp_payload,
if (ft == AMR_SID) {
/* store the last SID frame in lchan context */
unsigned int copy_len;
- copy_len = OSMO_MIN(payload_len+1,
+ copy_len = OSMO_MIN(payload_len+2,
ARRAY_SIZE(lchan->tch.last_sid.buf));
lchan->tch.last_sid.len = copy_len;
memcpy(lchan->tch.last_sid.buf, l1_payload, copy_len);
}
- return payload_len+1;
+ return payload_len+2;
}
#define RTP_MSGB_ALLOC_SIZE 512