mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Don't set RTP_LARGE_FRAME on rtp audio packets
This commit is contained in:
parent
5da8c8d5de
commit
5600251efe
|
@ -770,7 +770,9 @@ int rtp_send_data(RTPSession *session, const uint8_t *data, uint32_t length,
|
||||||
// here the highest bits gets stripped anyway, no need to do keyframe bit magic here!
|
// here the highest bits gets stripped anyway, no need to do keyframe bit magic here!
|
||||||
header.data_length_lower = length;
|
header.data_length_lower = length;
|
||||||
|
|
||||||
header.flags = RTP_LARGE_FRAME;
|
if (session->payload_type == rtp_TypeVideo) {
|
||||||
|
header.flags = RTP_LARGE_FRAME;
|
||||||
|
}
|
||||||
|
|
||||||
uint16_t length_safe = (uint16_t)length;
|
uint16_t length_safe = (uint16_t)length;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user