avcodec/nvenc: provide nvenc with monotonic frame index

release/7.1
Timo Rothenpieler 11 months ago
parent c06e9e289f
commit 271a0a55bc
  1. 1
      libavcodec/nvenc.c
  2. 2
      libavcodec/nvenc.h

@ -2784,6 +2784,7 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
pic_params.encodePicFlags = 0;
}
pic_params.frameIdx = ctx->frame_idx_counter++;
pic_params.inputTimeStamp = frame->pts;
if (ctx->extra_sei) {

@ -226,6 +226,8 @@ typedef struct NvencContext
void *nvencoder;
uint32_t frame_idx_counter;
int preset;
int profile;
int level;

Loading…
Cancel
Save