mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-18 05:23:43 +00:00
Issue #115: Comment about rtp_wrap_h264()
This commit is contained in:
@@ -99,6 +99,9 @@ char *rtp_make_sdp(rtp_s *rtp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void rtp_wrap_h264(rtp_s *rtp, const frame_s *frame, rtp_callback_f callback) {
|
void rtp_wrap_h264(rtp_s *rtp, const frame_s *frame, rtp_callback_f callback) {
|
||||||
|
// There is a complicated logic here but everything works as it should:
|
||||||
|
// - https://github.com/pikvm/ustreamer/issues/115#issuecomment-893071775
|
||||||
|
|
||||||
assert(frame->format == V4L2_PIX_FMT_H264);
|
assert(frame->format == V4L2_PIX_FMT_H264);
|
||||||
|
|
||||||
const uint32_t pts = get_now_monotonic_u64() * 9 / 100; // PTS units are in 90 kHz
|
const uint32_t pts = get_now_monotonic_u64() * 9 / 100; // PTS units are in 90 kHz
|
||||||
|
|||||||
Reference in New Issue
Block a user