summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-01-10 15:41:50 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2022-01-10 15:41:50 +0100
commit0b13c34a654891c91b9931fe59537dc028922f32 (patch)
treee4df9a1109d94b6c34d7f20b6427fb3d78eea771 /libavcodec/nvenc.c
parentf37e66b3937a914e16d89a9050f042ad89567245 (diff)
downloadffmpeg-0b13c34a654891c91b9931fe59537dc028922f32.tar.gz
avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 31dfed9241..850c46022b 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -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++) {