From 33cf5f138b5a7eefa8cf07c71eb0403a4fce849f Mon Sep 17 00:00:00 2001 From: HMH Date: Fri, 21 Jan 2022 21:28:04 +0100 Subject: [PATCH] micros -> millis. --- lib/encode_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/encode_video.c b/lib/encode_video.c index a6e52efe..e2f0a4c1 100644 --- a/lib/encode_video.c +++ b/lib/encode_video.c @@ -468,12 +468,12 @@ void destroy_video_encoder(VideoContext* ctx) free(ctx); } -void encode_video_frame(VideoContext* ctx, int micros, Error* err) +void encode_video_frame(VideoContext* ctx, int millis, Error* err) { int ret; AVFrame* frame = ctx->using_vaapi ? ctx->frame_hw : ctx->frame; - frame->pts = micros; + frame->pts = millis; ret = avcodec_send_frame(ctx->c, frame); if (ret < 0)