summaryrefslogtreecommitdiff
path: root/src/h264.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 /src/h264.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 'src/h264.c')
-rw-r--r--src/h264.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/h264.c b/src/h264.c
index 2bb4a26..4ee36dc 100644
--- a/src/h264.c
+++ b/src/h264.c
@@ -104,7 +104,7 @@ const uint8_t *h264_find_startcode(const uint8_t *p, const uint8_t *end)
static int rtp_send_data(const uint8_t *hdr, size_t hdr_sz,
const uint8_t *buf, size_t sz,
- bool eof, uint32_t rtp_ts,
+ bool eof, uint64_t rtp_ts,
videnc_packet_h *pkth, void *arg)
{
return pkth(eof, rtp_ts, hdr, hdr_sz, buf, sz, arg);
@@ -112,7 +112,7 @@ static int rtp_send_data(const uint8_t *hdr, size_t hdr_sz,
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)
{
@@ -153,7 +153,7 @@ int h264_nal_send(bool first, bool last,
}
-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)
{
const uint8_t *start = buf;