In the class AMFDDAPISourceImpl(file GPUOpen-LibrariesAndSDKs\AMF\amf\public\src\components\DisplayCapture\DDAPISource.cpp), there is a member m_contextAMF, and it seems useless.
m_deviceAMF->GetImmediateContext(&m_contextAMF);
Is it necessary to add a reference count to ID3D11DeviceContext, while not using it?