aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/netif/amr.h3
-rw-r--r--src/amr.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h
index 5e4ccd4..21ba9da 100644
--- a/include/osmocom/netif/amr.h
+++ b/include/osmocom/netif/amr.h
@@ -75,7 +75,8 @@ static inline void *osmo_amr_get_payload(struct amr_hdr *amrh)
#define AMR_FT_5 5 /* 7.95 */
#define AMR_FT_6 6 /* 10.2 */
#define AMR_FT_7 7 /* 12.2 */
-#define AMR_FT_MAX 8
+#define AMR_FT_SID 8 /* SID */
+#define AMR_FT_MAX 9
size_t osmo_amr_bytes(uint8_t amr_cmr);
diff --git a/src/amr.c b/src/amr.c
index 0a58b57..a6f6a32 100644
--- a/src/amr.c
+++ b/src/amr.c
@@ -34,6 +34,7 @@ static size_t amr_ft_to_bytes[AMR_FT_MAX] = {
[AMR_FT_5] = 20,
[AMR_FT_6] = 26,
[AMR_FT_7] = 31,
+ [AMR_FT_SID] = 6,
};
size_t osmo_amr_bytes(uint8_t amr_ft)