Converts a buffer to subtitle information.
HRESULT MFConvertBuffer2SubtitleInfo(
ULONG nSize,
BYTE *pInfoBuffer,
MF_SUBTITLE_INFO **ppSubtitleInfo
)
nSize
Type: ULONG
[in] Size.
pInfoBuffer
Type: BYTE *
[in] Pointer to the buffer.
ppSubtitleInfo
Type: MF_SUBTITLE_INFO **
[out] Pointer to the resulting subtitle information, populated after MFConvertBuffer2SubtitleInfo returns.
Type: HRESULT
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The function succeeded. |
Refer to Media Foundation return codes.
Header: Declared in mfapi.h.