diff options
-rw-r--r-- | toxav/rtp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index 72b59354..6093babf 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -770,7 +770,9 @@ int rtp_send_data(RTPSession *session, const uint8_t *data, uint32_t length, | |||
770 | // here the highest bits gets stripped anyway, no need to do keyframe bit magic here! | 770 | // here the highest bits gets stripped anyway, no need to do keyframe bit magic here! |
771 | header.data_length_lower = length; | 771 | header.data_length_lower = length; |
772 | 772 | ||
773 | header.flags = RTP_LARGE_FRAME; | 773 | if (session->payload_type == rtp_TypeVideo) { |
774 | header.flags = RTP_LARGE_FRAME; | ||
775 | } | ||
774 | 776 | ||
775 | uint16_t length_safe = (uint16_t)length; | 777 | uint16_t length_safe = (uint16_t)length; |
776 | 778 | ||