mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
avcodec/nvenc: provide nvenc with monotonic frame index
This commit is contained in:
parent
c06e9e289f
commit
271a0a55bc
@ -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…
Reference in New Issue
Block a user