MFCreateVideoSampleFromSurface C6387 Warning
Alexander Perry
1
Reputation point
Hi,
The annotation of the first parameter of MFCreateVideoSampleFromSurface
is _In_
rather than _In_opt_
and is causing a warning.
The docs say it can be NULL, can this be fixed?
See: https://learn.microsoft.com/en-us/windows/win32/api/evr/nc-evr-mfcreatevideosamplefromsurface
EVRPUBLIC(MFCreateVideoSampleFromSurface)(
_In_ IUnknown* pUnkSurface,
_Out_ IMFSample** ppSample
);