diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-08-31 16:02:31 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-09-24 11:56:16 +0200 |
commit | 3a0630222d56c6a1688556746803eb57d5dec10f (patch) | |
tree | d254fd9de97f64c0c393eec095a69b5ac6e99967 | |
parent | osmo_timer_pending: Make arg const (diff) | |
download | libosmocore-2021q1.tar.xz libosmocore-2021q1.zip |
gsm0503_coding: use ahs tables when encoding ahs codec id2021q1
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
-rw-r--r-- | src/coding/gsm0503_coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c index 1bec56ea..9c189cdd 100644 --- a/src/coding/gsm0503_coding.c +++ b/src/coding/gsm0503_coding.c @@ -3007,7 +3007,7 @@ int gsm0503_tch_ahs_encode(ubit_t *bursts, const uint8_t *tch_data, int len, return -1; } - memcpy(cB, gsm0503_afs_ic_ubit[id], 4); + memcpy(cB, gsm0503_ahs_ic_ubit[id], 4); gsm0503_tch_hr_interleave(cB, iB); |