<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleCursor/maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleCursor(im)samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:"
  },
  "title" : "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.

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

## Parameters

`cursor`

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

## Return Value

<doc://com.apple.documentation/documentation/Swift/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, <doc://com.apple.documentation/documentation/Swift/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`](/documentation/AVFoundation/AVAssetTrack).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)