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.encodePicFlags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pic_params.frameIdx = ctx->frame_idx_counter++;
|
||||||
pic_params.inputTimeStamp = frame->pts;
|
pic_params.inputTimeStamp = frame->pts;
|
||||||
|
|
||||||
if (ctx->extra_sei) {
|
if (ctx->extra_sei) {
|
||||||
|
|||||||
@ -226,6 +226,8 @@ typedef struct NvencContext
|
|||||||
|
|
||||||
void *nvencoder;
|
void *nvencoder;
|
||||||
|
|
||||||
|
uint32_t frame_idx_counter;
|
||||||
|
|
||||||
int preset;
|
int preset;
|
||||||
int profile;
|
int profile;
|
||||||
int level;
|
int level;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user