On Mon Nov 20 10:22:21 2023 +0000, Rémi Bernon wrote:
I'm not sure what you mean? Only a few RGB format GUID have a different value between MEDIASUBTYPE and MFVideoFormat. The code was converting some YUV formats unnecessarily, and missing other formats that don't need conversion (when they share `MFVideoFormat_Base`). This is also to make sure the `get_mf_subtype_for_am_subtype` conversion matches the later introduced `get_am_subtype_for_mf_subtype`.
I don't think adding checks based on the way those GUIDs are declared makes it more readable.