The AVIStreamPrevSampleTime macro determines the time of the nearest nonempty sample that precedes a specified time in a stream.
AVIStreamPrevSampleTime(
pavi,
time
);
Returns the time if successful or – 1 otherwise.
The AVIStreamPrevSampleTime macro is defined as follows:
#define AVIStreamPrevSampleTime(pavi, time) \
AVIStreamSampleToTime(pavi, \
AVIStreamPrevSample(pavi, \
AVIStreamTimeToSample(pavi, t)))
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
AVIFile Functions and Macros Overview, AVIFile Macros