diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-21 17:17:58 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-21 18:37:45 +0100 |
commit | 26a02deb1215fb68847b2078d97495a01fe2a857 (patch) | |
tree | 410e0ad0915ad4856f31b0cfd0393bcfde83a747 | |
parent | 17b1142959f6f916e5d3c04c0622a69acfe51667 (diff) |
amr: constify input buffer in osmo_amr_is_oa()
Change-Id: I72ef6fc700f628ea158ea888a5f1e9dc8776ab7e
-rw-r--r-- | include/osmocom/netif/amr.h | 2 | ||||
-rw-r--r-- | src/amr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h index 47f7f3d..e8f08d4 100644 --- a/include/osmocom/netif/amr.h +++ b/include/osmocom/netif/amr.h @@ -159,7 +159,7 @@ int osmo_amr_ft_valid(uint8_t amr_ft); size_t osmo_amr_bytes(uint8_t amr_cmr); size_t osmo_amr_bits(uint8_t amr_ft); -bool osmo_amr_is_oa(uint8_t *payload, unsigned int payload_len); +bool osmo_amr_is_oa(const uint8_t *payload, unsigned int payload_len); int osmo_amr_oa_to_bwe(uint8_t *payload, unsigned int payload_len); int osmo_amr_bwe_to_oa(uint8_t *payload, unsigned int payload_len, unsigned int payload_maxlen); @@ -113,7 +113,7 @@ int osmo_amr_ft_valid(uint8_t amr_ft) * \param[inout] payload user provided memory containing the AMR payload. * \param[in] payload_len overall length of the AMR payload. * \returns true when the payload is octet aligned. */ -bool osmo_amr_is_oa(uint8_t *payload, unsigned int payload_len) +bool osmo_amr_is_oa(const uint8_t *payload, unsigned int payload_len) { /* NOTE: The distinction between octet-aligned and bandwith-efficient * mode normally relys on out of band methods that explicitly select |