Rémi Bernon (@rbernon) commented about dlls/winegstreamer/mfplat.c:
FIXME("Unrecognized major type %s.\n", debugstr_guid(&major_type)); } + +bool wg_video_adapt_from_mf_stride(struct wg_format *format, IMFMediaType *type) +{ + UINT32 stride; + + if (format->major_type == WG_MAJOR_TYPE_VIDEO) + { + if (!SUCCEEDED(IMFMediaType_GetUINT32(type, &MF_MT_DEFAULT_STRIDE, &stride))) + return false; + if ((int)stride < 0) + format->u.video.height = -format->u.video.height; + } + return true; +}
Instead of the separate helper I think you could fill the `MF_MT_DEFAULT_STRIDE` attribute with the element' default stride value in `SetOutputType`, which would help ultimately pass the related `check_mft_get_output_current_type` tests. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2471#note_30032