question

AlexanderPerry-5205 avatar image
0 Votes"
AlexanderPerry-5205 asked JeanineZhang-MSFT commented

MFCreateVideoSampleFromSurface C6387 Warning

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://docs.microsoft.com/en-us/windows/win32/api/evr/nc-evr-mfcreatevideosamplefromsurface

 EVRPUBLIC(MFCreateVideoSampleFromSurface)(
     _In_ IUnknown* pUnkSurface,
     _Out_ IMFSample** ppSample
     );
c++
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Submit it as a bug report using Visual Studio's "Report a Problem" facility.

0 Votes 0 ·

You may also want to file a report with the Windows Feedback hub. It wouldn't surprise me if the Visual Studio team closed a report with a "not my problem, other product/department" type of response. I've seen it happen before.

0 Votes 0 ·

That can happen, but if the report contains a simple clear repro, and says "pretty please" pass this on to whoever owns those headers, it may get there :)

0 Votes 0 ·

It didn't work in my experience. The report had a clear, concise working repro and with the expectation that a "not my department" response might be forthcoming comments to MS requested forwarding as appropriate to the responsible team for follow-up. The matter was closed and dropped by MS. It certainly discourages one from bothering with bug reporting of any kind.

0 Votes 0 ·
Show more comments

0 Answers