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)