<!--
{
  "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/CMFormatDescriptionEqual(_:otherFormatDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMFormatDescriptionEqual"
  },
  "title" : "CMFormatDescriptionEqual(_:otherFormatDescription:)"
}
-->

# CMFormatDescriptionEqual(_:otherFormatDescription:)

Returns a Boolean value that indicates whether two format descriptions are equal.

```
func CMFormatDescriptionEqual(_ formatDescription: CMFormatDescription?, otherFormatDescription: CMFormatDescription?) -> Bool
```

## Parameters

`formatDescription`

The first description to compare.

`otherFormatDescription`

The second description to compare.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the two descriptions are equal; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This calls `CFEqual` on the provided `CMFormatDescription` objects. In contrast to the Core Foundation call it is `NULL` safe.

---

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)