The AVIStreamNearestKeyFrame macro locates the key frame at or preceding a specified position in a stream.
AVIStreamNearestKeyFrame(
pavi,
lPos
);
Returns the position of the key frame if successful or – 1 otherwise.
The AVIStreamNearestKeyFrame macro is defined as follows:
#define AVIStreamNearestKeyFrame(pavi, lPos) \
AVIStreamFindSample(pavi, lPos , FIND_PREV | FIND_KEY)
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