aboutsummaryrefslogtreecommitdiffstats
path: root/src/amr.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-12-21 17:17:58 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-12-21 18:37:45 +0100
commit26a02deb1215fb68847b2078d97495a01fe2a857 (patch)
tree410e0ad0915ad4856f31b0cfd0393bcfde83a747 /src/amr.c
parent17b1142959f6f916e5d3c04c0622a69acfe51667 (diff)
amr: constify input buffer in osmo_amr_is_oa()
Diffstat (limited to 'src/amr.c')
-rw-r--r--src/amr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amr.c b/src/amr.c
index 66f41c6..b648d54 100644
--- a/src/amr.c
+++ b/src/amr.c
@@ -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