diff --git a/janus/src/rtp.c b/janus/src/rtp.c index c1eb4c7..17bb6c4 100644 --- a/janus/src/rtp.c +++ b/janus/src/rtp.c @@ -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()); } -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; - if (marked) { + if (last_header) { word0 |= 1 << 23; } word0 |= (rtp->payload & 0x7F) << 16; diff --git a/janus/src/rtp.h b/janus/src/rtp.h index 43b2e1f..d49cbaf 100644 --- a/janus/src/rtp.h +++ b/janus/src/rtp.h @@ -66,4 +66,4 @@ us_rtp_s *us_rtp_init(void); void us_rtp_destroy(us_rtp_s *rtp); 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);