Partager via


IMediaSample::SetActualDataLength

 
Microsoft DirectShow 9.0

IMediaSample::SetActualDataLength

The SetActualDataLength method sets the length of the valid data in the buffer.

Syntax

  HRESULT SetActualDataLength(
  long lLen
);

Parameters

lLen

Length of the data in the media sample, in bytes.

Return Values

Returns an HRESULT value. Possible values include those shown in the following table.

Return code Description
S_OK Success.
VFW_E_BUFFER_OVERFLOW. Length specified in lLen is larger than the buffer size.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also