aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-05-17 16:04:31 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2023-05-22 12:00:48 +0200
commitaade3d422d8cfa3d0fe1bd0cd56fed08393a709e (patch)
tree1be2e5958d920392dc4b3e78c2362e598afcded2
parentb9461b4db42414b062d68c3ba4d4fd643cc0ac8a (diff)
l1sap: cosmetic: rename payload_len to rtp_pl_lenpmaier/rtpfmt
The function signature of rtppayload_is_octet_aligned has a parameter rtp_pl for the payload and a parameter payload_len for the length of the payload, while other functions use rtp_pl and rtp_pl_len. Change-Id: I8a0e0357aab2a78e25811f66b1b870e8c6ebffe9
-rw-r--r--src/common/l1sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 9c496a8f..dfea16ee 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1216,7 +1216,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx,
return 1;
}
-static bool rtppayload_is_octet_aligned(const uint8_t *rtp_pl, uint8_t payload_len)
+static bool rtppayload_is_octet_aligned(const uint8_t *rtp_pl, uint8_t rtp_pl_len)
{
/*
* Logic: If 1st bit padding is not zero, packet is either:
@@ -1237,7 +1237,7 @@ static bool rtppayload_is_octet_aligned(const uint8_t *rtp_pl, uint8_t payload_l
#define AMR_PADDING1(rtp_pl) (rtp_pl[0] & 0x0f)
#define AMR_PADDING2(rtp_pl) (rtp_pl[1] & 0x03)
- if (payload_len < 2 || AMR_PADDING1(rtp_pl) || AMR_PADDING2(rtp_pl))
+ if (rtp_pl_len < 2 || AMR_PADDING1(rtp_pl) || AMR_PADDING2(rtp_pl))
return false;
return true;