From 6d09cc35f34b007c8e375350fb6bbd82888960ea Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 22 Mar 2015 13:54:32 +0100 Subject: rtp: Add "data" to access the data behind the header This is needed for mgcp_transcode.c of OpenBSC to access the data after the header. Use a zero sized array for it. --- include/osmocom/netif/rtp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h index 729e5c9..46007db 100644 --- a/include/osmocom/netif/rtp.h +++ b/include/osmocom/netif/rtp.h @@ -23,6 +23,7 @@ struct rtp_hdr { uint16_t sequence; uint32_t timestamp; uint32_t ssrc; + uint8_t data[0]; } __attribute__((packed)); #define RTP_VERSION 2 -- cgit v1.2.3