<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17470">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm690: Fix amr speech bit length table<br><br>The table amr_len_by_ft represents the length of the raw AMR speech bits<br>in bytes. The table is based on the Table found in RFC 4867 §3.6, Table 1,<br>Column "Total speech bits". The number of bits is divided by 8 and then<br>rounded up to get the number of consumed octets.<br><br>An AMR SID frame (including STI and MI) takes up 39 bits, this will<br>result in 5 octets, not in 7. Lets correct this.<br><br>Related: OS#2978<br>Change-Id: Icf330450981b32be5d1cee5b10aa92bac4cb72f5<br>---<br>M src/codec/gsm690.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/70/17470/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/codec/gsm690.c b/src/codec/gsm690.c</span><br><span>index 1955716..8ab1df1 100644</span><br><span>--- a/src/codec/gsm690.c</span><br><span>+++ b/src/codec/gsm690.c</span><br><span>@@ -216,8 +216,9 @@</span><br><span>        92,  31,  52,  65,  86,</span><br><span> };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* See also RFC 4867 §3.6, Table 1, Column "Total speech bits" */</span><br><span> static const uint8_t amr_len_by_ft[16] = {</span><br><span style="color: hsl(0, 100%, 40%);">-  12, 13, 15, 17, 19, 20, 26, 31, 7,  0,  0,  0,  0,  0,  0,  0</span><br><span style="color: hsl(120, 100%, 40%);">+ 12, 13, 15, 17, 19, 20, 26, 31, 5,  0,  0,  0,  0,  0,  0,  0</span><br><span> };</span><br><span> </span><br><span> const struct value_string osmo_amr_type_names[] = {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/17470">change 17470</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/17470"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icf330450981b32be5d1cee5b10aa92bac4cb72f5 </div>
<div style="display:none"> Gerrit-Change-Number: 17470 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>