mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[player] Add pkt->header_len in rtp_common
This commit is contained in:
parent
8b842be17f
commit
3b00900572
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user