The AVIStreamTimeToSample function converts from milliseconds to samples.
STDAPI_(LONG) AVIStreamTimeToSample(
PAVISTREAM pavi,
LONG lTime
);
Returns the converted time if successful or – 1 otherwise.
Samples typically correspond to audio samples or video frames. Other stream types might support different formats than these.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
AVIFile Functions and Macros Overview, AVIFile Functions