<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBufferGetOutputDecodeTimeStamp(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMSampleBufferGetOutputDecodeTimeStamp"
  },
  "title" : "CMSampleBufferGetOutputDecodeTimeStamp(_:)"
}
-->

# CMSampleBufferGetOutputDecodeTimeStamp(_:)

Returns the output decode timestamp of a sample buffer.

```
func CMSampleBufferGetOutputDecodeTimeStamp(_ sbuf: CMSampleBuffer) -> CMTime
```

## Parameters

`sbuf`

The `CMSampleBuffer` being interrogated.

## Return Value

The output decode timestamp of the `CMSampleBuffer` or `kCMTimeInvalid` if there is an error.

## Discussion

For consistency with [`CMSampleBufferGetOutputPresentationTimeStamp(_:)`](/documentation/CoreMedia/CMSampleBufferGetOutputPresentationTimeStamp(_:)), this function calculates the returned value as:

`OutputPresentationTimeStamp + ((DecodeTimeStamp - PresentationTimeStamp) / SpeedMultiplier)`

---

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)