26 #define RTP_HEVC_HEADERS_SIZE 3
32 int nal_type = (buf[0] >> 1) & 0x3F;
35 if (len <= rtp_ctx->max_payload_size) {
53 rtp_ctx->
buf[0] = 49 << 1;
68 rtp_ctx->
buf[2] = nal_type;
70 rtp_ctx->
buf[2] |= 1 << 7;
76 while (len > rtp_payload_size) {
81 buf += rtp_payload_size;
82 len -= rtp_payload_size;
85 rtp_ctx->
buf[2] &= ~(1 << 7);
89 rtp_ctx->
buf[2] |= 1 << 6;
112 while (buf_ptr < buf_end) {
116 next_NAL_unit = buf_end;
120 while (!*(buf_ptr++))
125 nal_send(ctx, buf_ptr, next_NAL_unit - buf_ptr, next_NAL_unit == buf_end);
128 buf_ptr = next_NAL_unit;