MF_MT_ORIGINAL_WAVE_FORMAT_TAG attribute

Contains the original WAVE format tag for an audio stream.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Applies to

IMFMediaType

Remarks

Depending on the source file, the AVI media source might set this attribute on the media types that it offers.

An AVI file contains a stream header for each stream in the file. The AVI media source translates the stream header into a media type. For audio streams, the stream header contains a format tag that identifies the audio format. (The format tag is contained in the wFormatTag member of the WAVEFORMATEX structure.) In most cases, the AVI media source converts the format tag directly to a subtype GUID, as described in the topic Audio Subtype GUIDs. In some cases, however, it maps the original format tag to another format tag that is equivalent. If so, the media source stores the original format tag in the media type, using the MF_MT_ORIGINAL_WAVE_FORMAT_TAG attribute.

The format mappings are stored in the Registry under the following key:

HKEY_CLASSES_ROOT\MediaFoundation\MapAudioFormatTag

Each entry is a DWORD value. The name of the entry is the decimal representation of the format tag. The value of the entry is the equivalent format tag.

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

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

Media Type Attributes