avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct

This commit is contained in:
Timo Rothenpieler 2022-01-10 15:41:50 +01:00
parent f37e66b393
commit 0b13c34a65
1 changed files with 1 additions and 1 deletions

View File

@ -1856,7 +1856,7 @@ static int nvenc_register_frame(AVCodecContext *avctx, const AVFrame *frame)
NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
AVHWFramesContext *frames_ctx = (AVHWFramesContext*)frame->hw_frames_ctx->data;
NV_ENC_REGISTER_RESOURCE reg;
NV_ENC_REGISTER_RESOURCE reg = { 0 };
int i, idx, ret;
for (i = 0; i < ctx->nb_registered_frames; i++) {