AVIStreamSampleToSample  25KTPCO 

The AVIStreamSampleToSample macro returns the sample in a stream that occurs at the same time as a sample that occurs in a second stream.

AVIStreamSampleToSample(

    pavi1,

 

    pavi2,

 

    lSample

 

   );

 

 

Parameters

pavi1

Handle of an open stream that contains the sample that is returned.

pavi2

Handle of a second stream that contains the reference sample.

lSample

Position information of the sample in the stream referenced by pavi2.

 

Return Values

Returns the sample if successful or - 1 otherwise.

Remarks

The AVIStreamSampleToSample macro is defined as follows:

#define AVIStreamSampleToSample(pavi1, pavi2, lsample) \

    AVIStreamTimeToSample(pavi1, AVIStreamSampleToTime \

    (pavi2, lsample))