It appears that re-initialization of encoding session with NVIDIA Video Codec SDK is or might be producing an unexpected memory leak. So, how does it work exactly? The root case problem is secondary nvEncInitializeEncoder call. Alright, it might be not exactly how API is designed to work, but returned statuses all indicate success, so it…