<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTIME_IS_NEGATIVE_INFINITY",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@macro@CMTIME_IS_NEGATIVE_INFINITY"
  },
  "title" : "CMTIME_IS_NEGATIVE_INFINITY"
}
-->

# CMTIME_IS_NEGATIVE_INFINITY

Returns a Boolean value that indicates whether a time is negative infinity.

```
#define CMTIME_IS_NEGATIVE_INFINITY(time)
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the time is negative infinity; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Use this macro instead of testing whether a time is equal to [`negativeInfinity`](/documentation/CoreMedia/CMTime/negativeInfinity), because there are many times that represent negative infinity. The system ignores nonflags fields, so they can contain anything.

---

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)