MF_MT_MPEG4_CURRENT_SAMPLE_ENTRY attribute

Specifies the current entry in the sample description box for an MPEG-4 media type.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Applies to

IMFMediaType

Remarks

In an MP4 or 3GP file, the sample description box describes the encoding used for a stream in the file. The sample description box can contain multiple entries. This attribute specifies which entry to use. The value is a zero-based index into the list.

Currently, the only supported value is 0. The attribute has been defined for future extensibility.

The MPEG-4 file source always sets the value to 0. The MP4 and 3GP file sinks ignore the value of this attribute if it is present.

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

Requirements

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

See also

Alphabetical List of Media Foundation Attributes

Media Type Attributes

MF_MT_MPEG4_SAMPLE_DESCRIPTION