From 93969f487c3ac24f20faf266c341f34e3f156e39 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 13 Aug 2021 10:39:21 +0300 Subject: [PATCH] Issue #115: Comment about rtp_wrap_h264() --- janus/src/rtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/janus/src/rtp.c b/janus/src/rtp.c index acc2a8e..a6d97ee 100644 --- a/janus/src/rtp.c +++ b/janus/src/rtp.c @@ -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) { + // 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); const uint32_t pts = get_now_monotonic_u64() * 9 / 100; // PTS units are in 90 kHz