[XS] Change in libosmo-netif[master]: rtp: osmo_rtp_get_payload(): Fix return ptr if RTP pkt contains padding
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/38063?usp=email ) Change subject: rtp: osmo_rtp_get_payload(): Fix return ptr if RTP pkt contains padding ...................................................................... rtp: osmo_rtp_get_payload(): Fix return ptr if RTP pkt contains padding Padding is added at the end of the packet, hence the return pointer calculation was wrong in the case where RTP packet contained padding at the end. Related: OS#6562 Change-Id: I581fa1ca5c656ecddddba0f1c85c63beece2a624 --- M src/rtp.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/63/38063/1 diff --git a/src/rtp.c b/src/rtp.c index 6ba502b..8a777cb 100644 --- a/src/rtp.c +++ b/src/rtp.c @@ -157,7 +157,7 @@ } *plen = payload_len; - return (uint8_t *)msg->data + msg->len - payload_len; + return payload; } struct msgb * -- To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/38063?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmo-netif Gerrit-Branch: master Gerrit-Change-Id: I581fa1ca5c656ecddddba0f1c85c63beece2a624 Gerrit-Change-Number: 38063 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>
participants (1)
-
pespin