---
title: "CMFormatDescriptionEqual(_:otherFormatDescription:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmformatdescriptionequal(_:otherformatdescription:)"
---

# CMFormatDescriptionEqual(_:otherFormatDescription:)

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

## Declaration

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

## Parameters

- `formatDescription`: The first description to compare.
- `otherFormatDescription`: The second description to compare.

## Return Value

Return Value true if the two descriptions are equal; otherwise, false.

## Discussion

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

## See Also

### Comparing Format Descriptions

- [CMFormatDescriptionEqualIgnoringExtensionKeys(_:otherFormatDescription:extensionKeysToIgnore:sampleDescriptionExtensionAtomKeysToIgnore:)](coremedia/cmformatdescriptionequalignoringextensionkeys(_:otherformatdescription:extensionkeystoignore:sampledescriptionextensionatomkeystoignore:).md)
