summaryrefslogtreecommitdiff
path: root/modules/h265/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/h265/encode.c')
-rw-r--r--modules/h265/encode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/h265/encode.c b/modules/h265/encode.c
index f4835a3..62b16e0 100644
--- a/modules/h265/encode.c
+++ b/modules/h265/encode.c
@@ -17,7 +17,7 @@ struct videnc_state {
x265_param *param;
x265_encoder *x265;
int64_t pts;
- unsigned fps;
+ double fps;
unsigned bitrate;
unsigned pktsize;
videnc_packet_h *pkth;
@@ -36,7 +36,7 @@ static void destructor(void *arg)
}
-static int set_params(struct videnc_state *st, unsigned fps, unsigned bitrate)
+static int set_params(struct videnc_state *st, double fps, unsigned bitrate)
{
st->param = x265_param_alloc();
if (!st->param) {
@@ -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;