AVIStreamPrevSampleTime  AJPGX7 

The AVIStreamPrevSampleTime macro determines the time of the nearest nonempty sample that precedes a specified time in a stream.

AVIStreamPrevSampleTime(

    pavi,

 

    time

 

   );

 

 

Parameters

pavi

Handle of an open stream.

time

Position information of the sample in the stream.

 

Return Values

Returns the time if successful or - 1 otherwise.

Remarks

The AVIStreamPrevSampleTime macro is defined as follows:

#define AVIStreamPrevSampleTime(pavi, time) \

    AVIStreamSampleToTime(pavi, \

    AVIStreamPrevSample(pavi, \

    AVIStreamTimeToSample(pavi, t)))