summaryrefslogtreecommitdiff
path: root/modules/vp8/encode.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-24 19:11:22 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-24 19:11:22 +0100
commit59d29c0254b9240a00ac9236cc8e92c0ae65ec8a (patch)
tree86173746d71a3737e649ce41ce39f4bd56f1adc6 /modules/vp8/encode.c
parent73f6d3e5c86244d468499d17321fd9abfc65b9f0 (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/vp8/encode.c')
-rw-r--r--modules/vp8/encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vp8/encode.c b/modules/vp8/encode.c
index 83f136b..6707ead 100644
--- a/modules/vp8/encode.c
+++ b/modules/vp8/encode.c
@@ -157,7 +157,7 @@ static inline void hdr_encode(uint8_t hdr[HDR_SIZE], bool noref, bool start,
static inline int packetize(bool marker, const uint8_t *buf, size_t len,
size_t maxlen, bool noref, uint8_t partid,
- uint16_t picid, uint32_t rtp_ts,
+ uint16_t picid, uint64_t rtp_ts,
videnc_packet_h *pkth, void *arg)
{
uint8_t hdr[HDR_SIZE];
@@ -236,7 +236,7 @@ int vp8_encode(struct videnc_state *ves, bool update,
bool keyframe = false, marker = true;
const vpx_codec_cx_pkt_t *pkt;
uint8_t partid = 0;
- uint32_t ts;
+ uint64_t ts;
pkt = vpx_codec_get_cx_data(&ves->ctx, &iter);
if (!pkt)