Nikolay Sivov (@nsivov) commented about dlls/mfplat/mediatype.c:
- UINT32 image_size, bitrate, sample_size;
- UINT64 frame_size, frame_rate;
- INT32 width, height;
- HRESULT hr;
- if (IsEqualGUID(&am_type->formattype, &FORMAT_WaveFormatEx))
return E_INVALIDARG;
- if (IsEqualGUID(&am_type->formattype, &GUID_NULL))
am_type->formattype = FORMAT_VideoInfo;
- if (IsEqualGUID(&am_type->formattype, &FORMAT_MFVideoFormat))
return MFCreateMFVideoFormatFromMFMediaType(media_type, (MFVIDEOFORMAT **)&am_type->pbFormat,
(UINT32 *)&am_type->cbFormat);
- if (IsEqualGUID(&am_type->formattype, &FORMAT_VideoInfo))
- {
Let's include that in the following if () sequence, merging GUID_NULL with VideoInfo.