History

avcodec/nvenc: provide nvenc with monotonic frame index

Timo Rothenpieler committed 2 years ago

Commit 271a0a51 parent c06e9e22 files · +3 −0Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/nvenc.c +1 −0
  2. libavcodec/nvenc.h +2 −0
libavcodec/nvenc.c+1−0
@@ -2784,6 +2784,7 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame) · 2783 unmodified lines
27842784 pic_params.encodePicFlags = 0;
27852785 }
27862786
2787+ pic_params.frameIdx = ctx->frame_idx_counter++;
27872788 pic_params.inputTimeStamp = frame->pts;
27882789
27892790 if (ctx->extra_sei) {
libavcodec/nvenc.h+2−0
@@ -226,6 +226,8 @@ typedef struct NvencContext · 225 unmodified lines
226226
227227 void *nvencoder;
228228
229+ uint32_t frame_idx_counter;
230+
229231 int preset;
230232 int profile;
231233 int level;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t