AVIStreamPrevSample

The AVIStreamPrevSample macro locates the nearest nonempty sample that precedes a specified position in a stream.

AVIStreamPrevSample(
  pavi, 
  lPos  
);
 

Parameters

pavi
Handle of an open stream.
lPos
Starting position to search in the stream.

Return Values

Returns the sample position if successful or – 1 otherwise.

Remarks

The sample position returned does not include the sample specified by lPos.

The AVIStreamPrevSample macro is defined as follows:

#define AVIStreamPrevSample(pavi, lPos) \ 
    AVIStreamFindSample(pavi, lPos - 1, FIND_PREV | FIND_ANY) 
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

AVIFile Functions and Macros Overview, AVIFile Macros