[FFmpeg-devel] [PATCH] libavcodec/nvenc.c: memset NV_ENC_REGISTER_RESOURCE structure with zeros

Roman Arzumanyan rarzumanyan at nvidia.com
Mon Jan 10 14:49:44 EET 2022


Hello,

This patch memsets NV_ENC_REGISTER_RESOURCE structure with zeros.
Without that, in rare occasions NV_ENC_REGISTER_RESOURCE::bufferUsage structure field may accidentaly take NV_ENC_OUTPUT_MOTION_VECTOR value causing nvEncRegisterResource() function to fail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-3470660-initializing-NV_ENC_REGISTER_RESOURCE-with-z.patch
Type: text/x-patch
Size: 793 bytes
Desc: 0001-3470660-initializing-NV_ENC_REGISTER_RESOURCE-with-z.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220110/b4ce7342/attachment.bin>


More information about the ffmpeg-devel mailing list