Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFT_CODEC_MERIT_Attribute attribute

Contains the merit value of a hardware codec.

Data type



To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.


This attribute is set on the activation object for a Media Foundation transform (MFT) that represents a hardware codec. The value of the attribute is the codec's merit value.

This attribute controls the order in which the MFTEnumEx function enumerates codecs, if the MFT_ENUM_FLAG_SORTANDFILTER flag is set. MFTs with a merit value appear higher in the list than other MFTs.

This attribute does not contain a trusted value. To verify the codec's actual merit value, call the MFGetMFTMerit function.

If the value of the MFT_CODEC_MERIT_Attribute attribute does not match the merit value retrieved by MFGetMFTMerit, the IMFActivate::ActivateObject method fails and returns MF_E_INVALID_CODEC_MERIT.

The GUID constant for this attribute is exported from mfuuid.lib.


Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]



See also

Alphabetical List of Media Foundation Attributes
Transform Attributes



© 2016 Microsoft