Don't set RTP_LARGE_FRAME on rtp audio packets

This commit is contained in:
Robin Lindén 2018-03-05 23:11:52 +01:00 committed by iphydf
parent 5da8c8d5de
commit 5600251efe
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

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