Unified · Split
| @@ -2784,6 +2784,7 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame) · 2783 unmodified lines | ||
| 2784 | 2784 | pic_params.encodePicFlags = 0; |
| 2785 | 2785 | } |
| 2786 | 2786 | |
| 2787 | + pic_params.frameIdx = ctx->frame_idx_counter++; | |
| 2787 | 2788 | pic_params.inputTimeStamp = frame->pts; |
| 2788 | 2789 | |
| 2789 | 2790 | if (ctx->extra_sei) { |
| @@ -226,6 +226,8 @@ typedef struct NvencContext · 225 unmodified lines | ||
| 226 | 226 | |
| 227 | 227 | void *nvencoder; |
| 228 | 228 | |
| 229 | + uint32_t frame_idx_counter; | |
| 230 | + | |
| 229 | 231 | int preset; |
| 230 | 232 | int profile; |
| 231 | 233 | int level; |