[FFmpeg-cvslog] avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
Timo Rothenpieler
git at videolan.org
Mon Jan 10 16:53:23 EET 2022
ffmpeg | branch: release/5.0 | Timo Rothenpieler <timo at rothenpieler.org> | Mon Jan 10 15:41:50 2022 +0100| [cd74c838fc5e751b636e0df41ad343d2d899bb0b] | committer: Timo Rothenpieler
avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd74c838fc5e751b636e0df41ad343d2d899bb0b
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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++) {
More information about the ffmpeg-cvslog
mailing list