pespin submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
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(-)
diff --git a/src/rtp.c b/src/rtp.c
index 1da409c..9b1d7cb 100644
--- a/src/rtp.c
+++ b/src/rtp.c
@@ -162,7 +162,7 @@
}
*plen = payload_len;
- return (uint8_t *)msg->data + msg->len - payload_len;
+ return payload;
}
struct msgb *
To view, visit change 38063. To unsubscribe, or for help writing mail filters, visit settings.