History

avcodec/nvenc: provide nvenc with monotonic frame index

Timo Rothenpieler committed 2 years ago

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

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
2784 pic_params.encodePicFlags = 0;2784 pic_params.encodePicFlags = 0;
2785 }2785 }
2786 2786
2787 pic_params.frameIdx = ctx->frame_idx_counter++;
2787 pic_params.inputTimeStamp = frame->pts;2788 pic_params.inputTimeStamp = frame->pts;
2788 2789
2789 if (ctx->extra_sei) {2790 if (ctx->extra_sei) {
libavcodec/nvenc.h+2−0
@@ -226,6 +226,8 @@ typedef struct NvencContext · 225 unmodified lines
226 226
227 void *nvencoder;227 void *nvencoder;
228 228
229 uint32_t frame_idx_counter;
230
229 int preset;231 int preset;
230 int profile;232 int profile;
231 int level;233 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