Change in libosmocore[master]: gsm0503_coding: use ahs tables when encoding ahs codec id

dexter gerrit-no-reply at lists.osmocom.org
Tue Aug 31 14:59:45 UTC 2021


dexter has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/25293 )

Change subject: gsm0503_coding: use ahs tables when encoding ahs codec id
......................................................................

gsm0503_coding: use ahs tables when encoding ahs codec id

The encoder function gsm0503_tch_ahs_encode uses gsm0503_afs_ic_ubit
when encoding the CMR or FT (depends on the frame number). This is not
correct. It should use gsm0503_ahs_ic_ubit instead.

Change-Id: Id250b2102ac79ff222bd3ad9d1abc4b60abdd12b
Related: SYS#5549
---
M src/coding/gsm0503_coding.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c
index 1bec56e..9c189cd 100644
--- a/src/coding/gsm0503_coding.c
+++ b/src/coding/gsm0503_coding.c
@@ -3007,7 +3007,7 @@
 		return -1;
 	}
 
-	memcpy(cB, gsm0503_afs_ic_ubit[id], 4);
+	memcpy(cB, gsm0503_ahs_ic_ubit[id], 4);
 
 	gsm0503_tch_hr_interleave(cB, iB);
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/25293
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id250b2102ac79ff222bd3ad9d1abc4b60abdd12b
Gerrit-Change-Number: 25293
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210831/bf3199e5/attachment.htm>


More information about the gerrit-log mailing list