mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 23:36:16 +00:00
janus: rtp: marked -> last_header
This commit is contained in:
@@ -47,9 +47,9 @@ void us_rtp_assign(us_rtp_s *rtp, uint payload, bool video) {
|
|||||||
rtp->ssrc = us_triple_u32(us_get_now_monotonic_u64());
|
rtp->ssrc = us_triple_u32(us_get_now_monotonic_u64());
|
||||||
}
|
}
|
||||||
|
|
||||||
void us_rtp_write_header(us_rtp_s *rtp, u32 pts, bool marked) {
|
void us_rtp_write_header(us_rtp_s *rtp, u32 pts, bool last_header) {
|
||||||
u32 word0 = 0x80000000;
|
u32 word0 = 0x80000000;
|
||||||
if (marked) {
|
if (last_header) {
|
||||||
word0 |= 1 << 23;
|
word0 |= 1 << 23;
|
||||||
}
|
}
|
||||||
word0 |= (rtp->payload & 0x7F) << 16;
|
word0 |= (rtp->payload & 0x7F) << 16;
|
||||||
|
|||||||
@@ -66,4 +66,4 @@ us_rtp_s *us_rtp_init(void);
|
|||||||
void us_rtp_destroy(us_rtp_s *rtp);
|
void us_rtp_destroy(us_rtp_s *rtp);
|
||||||
|
|
||||||
void us_rtp_assign(us_rtp_s *rtp, uint payload, bool video);
|
void us_rtp_assign(us_rtp_s *rtp, uint payload, bool video);
|
||||||
void us_rtp_write_header(us_rtp_s *rtp, u32 pts, bool marked);
|
void us_rtp_write_header(us_rtp_s *rtp, u32 pts, bool last_header);
|
||||||
|
|||||||
Reference in New Issue
Block a user