[player] Add pkt->header_len in rtp_common

This commit is contained in:
ejurgensen 2020-12-22 23:04:29 +01:00
parent 8b842be17f
commit 3b00900572
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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