---
title: "maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avsamplecursor/maysampleswithlaterdecodetimestampshavepresentationtimestamps(earlierthan:)"
---

# maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)

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

## Declaration

```swift
func maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan cursor: AVSampleCursor) -> Bool
```

## Parameters

- `cursor`: An instance of AVSampleCursor with which to test the sample reordering boundary.

## Return Value

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

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

- [maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan:)](avfoundation/avsamplecursor/maysampleswithearlierdecodetimestampshavepresentationtimestamps(laterthan:).md)
- [samplesRequiredForDecoderRefresh](avfoundation/avsamplecursor/samplesrequiredfordecoderrefresh.md)
