Possible leak in NVENC h.264 encoder MFT

Hi, I think there may be a pretty significant resource leak in the NVENC h.264 encoder Media Foundation transform. Please see this question on Stack Overflow for more details and sample code: memory leaks - Is the NVIDIA h.264 encoder MFT leaking resources? - Stack Overflow

As far as I can tell I am using the encoder as described by the Media Foundation docs on Hardware MFTs, yet I am observing a leak. Is there something special to consider when using the NVENC implementation? I have found a workaround by dereferencing the D3D device after each frame submission, but this is not ideal.

Otto Itkonen
Software by KeloCube

1 Like