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 /modules/h265/encode.c | |
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 'modules/h265/encode.c')
-rw-r--r-- | modules/h265/encode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/h265/encode.c b/modules/h265/encode.c index f4835a3..fe5f5f9 100644 --- a/modules/h265/encode.c +++ b/modules/h265/encode.c @@ -140,7 +140,7 @@ static int open_encoder(struct videnc_state *st, const struct vidsz *size) static inline int packetize(bool marker, const uint8_t *buf, size_t len, - size_t maxlen, uint32_t rtp_ts, + size_t maxlen, uint64_t rtp_ts, videnc_packet_h *pkth, void *arg) { int err = 0; @@ -195,7 +195,7 @@ int h265_encode(struct videnc_state *st, bool update, uint32_t i, nalc = 0; int colorspace; int n, err = 0; - uint32_t ts; + uint64_t ts; if (!st || !frame) return EINVAL; |