mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avcodec/nvenc: provide nvenc with monotonic frame index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user