Contents

maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)

Determines whether a sample later in decode order can have a presentation timestamp earlier than that of the specified sample cursor.

Declaration

func maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan cursor: AVSampleCursor) -> Bool

Parameters

  • cursor:

    An instance of AVSampleCursor with which to test the sample reordering boundary.

Return Value

true if it’s possible for any sample later in decode order than the sample at the position of the receiver can have a presentation timestamp earlier than that of the specified sample cursor; otherwise, false.

Discussion

Undefined results occur if this cursor and the passed in cursor reference different sequences of samples, such as when they’re created by different instances of AVAssetTrack.

See Also

Accessing samples