CheckVideoInfoType

 
Microsoft DirectShow 9.0

CheckVideoInfoType

The CheckVideoInfoType function checks a media type that contains a VIDEOINFOHEADER format structure for certain common errors that can cause buffer overruns or integer overflows.

  • Note   This function does not guarantee that the media type is valid or that code using the structure is secure.

Syntax

  HRESULT CheckVideoInfoType(
    const AM_MEDIA_TYPE *
  pmt

  );

Parameters

pmt

Pointer to the AM_MEDIA_TYPE structure to validate.

Return Value

Returns one of the following HRESULT values.

Value Description
S_OK Success
E_POINTER NULL pointer value
VFW_E_TYPE_NOT_ACCEPTED Invalid media type

Remarks

This function calls ValidateBitmapInfoHeader to validate the BITMAPINFOHEADER structure in the media type. If the format type is not FORMAT_VideoInfo, the function returns VFW_E_TYPE_NOT_ACCEPTED.

Requirements

**  Header:** Include checkbmi.h.

**  Library:** None.

See Also