diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2018-02-24 19:11:22 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2018-02-24 19:11:22 +0100 |
commit | 59d29c0254b9240a00ac9236cc8e92c0ae65ec8a (patch) | |
tree | 86173746d71a3737e649ce41ce39f4bd56f1adc6 /include/baresip.h | |
parent | 73f6d3e5c86244d468499d17321fd9abfc65b9f0 (diff) |
vidcodec: change rtp_ts from 32-bit to 64-bit
the extended RTP timestamp from the video encoder
should now contain a full extended timestamp, that
must never wrap.
Diffstat (limited to 'include/baresip.h')
-rw-r--r-- | include/baresip.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/baresip.h b/include/baresip.h index e8b354a..e67fc8d 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -1011,7 +1011,7 @@ int video_set_source(struct video *v, const char *name, const char *dev); void video_set_devicename(struct video *v, const char *src, const char *disp); void video_encoder_cycle(struct video *video); int video_debug(struct re_printf *pf, const struct video *v); -uint32_t video_calc_rtp_timestamp(int64_t pts, unsigned fps); +uint64_t video_calc_rtp_timestamp(int64_t pts, unsigned fps); double video_calc_seconds(uint64_t rtp_ts); struct stream *video_strm(const struct video *v); @@ -1143,10 +1143,10 @@ int h264_fu_hdr_decode(struct h264_fu *fu, struct mbuf *mb); const uint8_t *h264_find_startcode(const uint8_t *p, const uint8_t *end); -int h264_packetize(uint32_t rtp_ts, const uint8_t *buf, size_t len, +int h264_packetize(uint64_t rtp_ts, const uint8_t *buf, size_t len, size_t pktsize, videnc_packet_h *pkth, void *arg); int h264_nal_send(bool first, bool last, - bool marker, uint32_t ihdr, uint32_t rtp_ts, + bool marker, uint32_t ihdr, uint64_t rtp_ts, const uint8_t *buf, size_t size, size_t maxsz, videnc_packet_h *pkth, void *arg); static inline bool h264_is_keyframe(int type) |