Indicates the lengths of NALUs in the sample. This is a MF BLOB that is set on compressed input samples to the H.264 decoder.
In order for this attribute to be set, the media must be of type MEDIASUBTYPE_H264 and the MF_NALU_LENGTH_SET attribute must be set on the input media type of MEDIASUBTYPE_H264.
Set MF_NALU_LENGTH_INFORMATION as a BLOB on the input sample, with one DWORD for each NALU in the sample. For example, if there are AUD (9 bytes), SPS (25 bytes), PPS (10 bytes), IDR slice1 (50 k), IDR slice 2 (60 k), then there should be 5 DWORDs with values 9, 25, 10, 50 k, 60 k in the BLOB.
Here some code that sets the BLOB, where rgdwNALULengthInfo is an array of type DWORD and uiNaluLengthIdx is the valid NALU lengths set to the BLOB.
m_spSample->SetBlob( MF_NALU_LENGTH_INFORMATION, (UINT8*) m_wpParent->m_pdwNALULengthInfo, sizeof(DWORD)*uiNaluLengthIdx ), done );
|Minimum supported client
||Windows 8 [desktop apps | UWP apps]
|Minimum supported server
||Windows Server 2012 [desktop apps | UWP apps]