<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBuffer/Error/invalidEntryCount",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:So17CMSampleBufferRefa9CoreMediaE5ErrorV17invalidEntryCountSo7NSErrorCvpZ"
  },
  "title" : "invalidEntryCount"
}
-->

# invalidEntryCount

A timing or size value isn’t within the allowed range.

```
static let invalidEntryCount: NSError
```

## Discussion

Timing and size values must be `0`, `1`, or the number of samples.

---

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)