Skip to content

Commit

Permalink
micros -> millis.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Jan 21, 2022
1 parent 45af147 commit 33cf5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/encode_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33cf5f1

Please sign in to comment.