From 3b00900572cbba7849544913a7c525f01d05f125 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 22 Dec 2020 23:04:29 +0100 Subject: [PATCH] [player] Add pkt->header_len in rtp_common --- src/outputs/rtp_common.c | 1 + src/outputs/rtp_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/outputs/rtp_common.c b/src/outputs/rtp_common.c index 08bda959..e5027ad2 100644 --- a/src/outputs/rtp_common.c +++ b/src/outputs/rtp_common.c @@ -136,6 +136,7 @@ rtp_packet_next(struct rtp_session *session, size_t payload_len, int samples, ch } pkt->samples = samples; + pkt->header_len = RTP_HEADER_LEN; pkt->payload_len = payload_len; pkt->data_len = RTP_HEADER_LEN + payload_len; pkt->seqnum = session->seqnum; diff --git a/src/outputs/rtp_common.h b/src/outputs/rtp_common.h index 23086a78..d6ced5c7 100644 --- a/src/outputs/rtp_common.h +++ b/src/outputs/rtp_common.h @@ -35,6 +35,7 @@ struct rtp_packet int samples; // Number of samples in the packet uint8_t *header; // Pointer to the RTP header + size_t header_len; // Length of RTP header (12 bytes) uint8_t *payload; // Pointer to the RTP payload size_t payload_size; // Size of allocated memory for RTP payload