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