diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2022-01-10 15:41:50 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2022-01-10 15:53:15 +0100 |
commit | cd74c838fc5e751b636e0df41ad343d2d899bb0b (patch) | |
tree | 0906ed0779773069be006e9347323518d5ea0821 | |
parent | ce1558e66b0d10e00f7ebdfcfc9badb84301eaf3 (diff) | |
download | ffmpeg-cd74c838fc5e751b636e0df41ad343d2d899bb0b.tar.gz |
avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
-rw-r--r-- | libavcodec/nvenc.c | 2 |
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++) { |