<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTDecompressionSessionCanAcceptFormatDescription"
  },
  "title" : "VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)"
}
-->

# VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)

Indicates whether the session can decode frames with the given format description.

```
func VTDecompressionSessionCanAcceptFormatDescription(_ session: VTDecompressionSession, formatDescription newFormatDesc: CMFormatDescription) -> Bool
```

## Parameters

`session`

The decompression session.

`newFormatDesc`

The <doc://com.apple.documentation/documentation/CoreMedia/CMFormatDescription> to test.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the decompression session accepts the format description; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Some video decoders can accommodate minor changes in format without needing to be completely reset in a new session.  Use this function to test whether a format change is sufficiently minor.

---

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)