---
title: "maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avsamplecursor/maysampleswithearlierdecodetimestampshavepresentationtimestamps(laterthan:)"
---

# maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan:)

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

## Declaration

```swift
func maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan 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 earlier in decode order than the sample at the position of the receiver can have a presentation timestamp later 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

- [maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)](avfoundation/avsamplecursor/maysampleswithlaterdecodetimestampshavepresentationtimestamps(earlierthan:).md)
- [samplesRequiredForDecoderRefresh](avfoundation/avsamplecursor/samplesrequiredfordecoderrefresh.md)
