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/avcodec | |
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/avcodec')
-rw-r--r-- | modules/avcodec/encode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/avcodec/encode.c b/modules/avcodec/encode.c index 0bdb1d3..84e4691 100644 --- a/modules/avcodec/encode.c +++ b/modules/avcodec/encode.c @@ -346,7 +346,7 @@ static void param_handler(const struct pl *name, const struct pl *val, } -static int general_packetize(uint32_t rtp_ts, struct mbuf *mb, size_t pktsize, +static int general_packetize(uint64_t rtp_ts, struct mbuf *mb, size_t pktsize, videnc_packet_h *pkth, void *arg) { int err = 0; @@ -371,7 +371,7 @@ static int general_packetize(uint32_t rtp_ts, struct mbuf *mb, size_t pktsize, static int h263_packetize(struct videnc_state *st, - uint32_t rtp_ts, struct mbuf *mb, + uint64_t rtp_ts, struct mbuf *mb, videnc_packet_h *pkth, void *arg) { struct h263_strm h263_strm; @@ -569,7 +569,7 @@ int encode_x264(struct videnc_state *st, bool update, int i_nal; int i, err, ret; int csp, pln; - uint32_t ts; + uint64_t ts; if (!st || !frame) return EINVAL; @@ -670,7 +670,7 @@ int encode(struct videnc_state *st, bool update, const struct vidframe *frame) { int i, err, ret; int pix_fmt; - uint32_t ts; + uint64_t ts; if (!st || !frame) return EINVAL; |