summaryrefslogtreecommitdiff
path: root/modules/av1/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/av1/encode.c')
-rw-r--r--modules/av1/encode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/av1/encode.c b/modules/av1/encode.c
index 9e24bcc..d090a86 100644
--- a/modules/av1/encode.c
+++ b/modules/av1/encode.c
@@ -23,7 +23,7 @@ struct videnc_state {
aom_codec_ctx_t ctx;
struct vidsz size;
aom_codec_pts_t pts;
- unsigned fps;
+ double fps;
unsigned bitrate;
unsigned pktsize;
bool ctxup;
@@ -137,7 +137,7 @@ static inline void hdr_encode(uint8_t hdr[HDR_SIZE], bool noref, bool start,
}
-static inline int packetize(bool marker, uint32_t rtp_ts,
+static inline int packetize(bool marker, uint64_t rtp_ts,
const uint8_t *buf, size_t len,
size_t maxlen, bool noref, uint8_t partid,
uint16_t picid, videnc_packet_h *pkth, void *arg)
@@ -210,7 +210,7 @@ int av1_encode(struct videnc_state *ves, bool update,
}
res = aom_codec_encode(&ves->ctx, img, ves->pts++, 1,
- flags, AOM_DL_REALTIME);
+ flags);
if (res) {
warning("av1: enc error: %s\n", aom_codec_err_to_string(res));
return ENOMEM;
@@ -222,7 +222,7 @@ int av1_encode(struct videnc_state *ves, bool update,
bool keyframe = false, marker = true;
const aom_codec_cx_pkt_t *pkt;
uint8_t partid = 0;
- uint32_t ts;
+ uint64_t ts;
pkt = aom_codec_get_cx_data(&ves->ctx, &iter);
if (!pkt)