AVIStreamEnd

The AVIStreamEnd macro calculates the sample associated with the end of a stream.

AVIStreamEnd(
  pavi  
);
 

Parameters

pavi
Handle of an open stream.

Return Values

Returns the sample number associated with the end of a stream, or, if an error occurs, one less than the first sample or one less than the stream length.

Remarks

The sample number returned is not a valid sample number for reading data. It represents the end of the file. (The end of the file is equal to the start of the file plus its length.)

The AVIStreamEnd macro is defined as follows:

#define AVIStreamEnd(pavi) \ 
    (AVIStreamStart(pavi) + AVIStreamLength(pavi)) 
 

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