mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-11 08:35:27 +01:00
avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user