[FFmpeg-cvslog] avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
Timo Rothenpieler
git at videolan.org
Mon Jan 10 16:52:59 EET 2022
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Mon Jan 10 15:41:50 2022 +0100| [0b13c34a654891c91b9931fe59537dc028922f32] | committer: Timo Rothenpieler
avcodec/nvenc: zero-initialize NV_ENC_REGISTER_RESOURCE struct
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b13c34a654891c91b9931fe59537dc028922f32
---
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