Webcam MJPG capture streams are unavailable on Windows 10
<p>On Windows 10 build 10.1607.14393.10 (aka Anniversary edition) I am unable to get MJPG capture streams anymore. Used to be both MJPG and YUY2 resolutions, now I am getting only YUY2 in DirectShow (Kernel Streaming) and in Media Foundation MJPG converted media types into NV12 way before IBaseFilter source is connected to anything. Tried on multiple systems with different cameras. Any ideas what might be wrong?</p>

<pre><code>     640x480   @30   YUY2
     ...
     640x480   @30   MJPG &lt;- gone
 ...
DirectShow:
    com_t&lt;IAMStreamConfig&gt; sc;
    if_failed_return_result(camera_output_pin-&gt;QueryInterface(&amp;sc));
    int number_of_capabilities = 0;
    int capability_size = 0;
    if_failed_return(sc-&gt;GetNumberOfCapabilities(&amp;number_of_capabilities, &amp;capability_size), -1);
    for (int i = 0; i &lt; number_of_capabilities &amp;&amp; k &lt; count; i++) {
        VIDEO_STREAM_CONFIG_CAPS scc;
        assert(sizeof(scc) == capability_size);
        AM_MEDIA_TYPE* mt = null;
        if_failed_return(sc-&gt;GetStreamCaps(i, &amp;mt, (BYTE*)&amp;scc), -1);
...
</code></pre>

<p>In MMF:</p>

<pre><code>    640x480   @30   YUY2
    ...
    640x480   @30   NV12 // camera reports MJPG 4cc in USBView and KsStudio

for (int i = 0; k &lt; count; i++) {
    com_t&lt;IMFMediaType&gt; type;
    if (d-&gt;reader-&gt;GetNativeMediaType(VIDEO_STREAM, i, &amp;type) != 0) {
        break;
    }
    GUID guid_major_type = {0};
    if_failed_return_result(type-&gt;GetMajorType(&amp;guid_major_type));
    if (guid_major_type == MFMediaType_Video) {
        GUID guid_subtype = {0};
        if_failed_return_result(type-&gt;GetGUID(MF_MT_SUBTYPE, &amp;guid_subtype));
        AM_MEDIA_TYPE* amMediaType = null;
        if_failed_return_result(type-&gt;GetRepresentation(FORMAT_MFVideoFormat, (void**)&amp;amMediaType));
        assert(amMediaType-&gt;cbFormat == sizeof(MFVIDEOFORMAT));
        const MFVIDEOFORMAT* mi = (const MFVIDEOFORMAT*)amMediaType-&gt;pbFormat;
</code></pre>