<!--
{
  "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/kVTCompressionPropertyKey_MaxFrameDelayCount",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@kVTCompressionPropertyKey_MaxFrameDelayCount"
  },
  "title" : "kVTCompressionPropertyKey_MaxFrameDelayCount"
}
-->

# kVTCompressionPropertyKey_MaxFrameDelayCount

The maximum number of frames that a compressor is allowed to hold before it must output a compressed frame.

```
let kVTCompressionPropertyKey_MaxFrameDelayCount: CFString
```

## Discussion

This value limits the number of frames that may be held in the compression window. If the maximum frame delay count is M, then before the call to encode frame N returns, frame N-M must have been emitted. The default is [`kVTUnlimitedFrameDelayCount`](/documentation/VideoToolbox/kVTUnlimitedFrameDelayCount), which sets no limit on the compression window.

## Topics

### Delay Counts

[`kVTUnlimitedFrameDelayCount`](/documentation/VideoToolbox/kVTUnlimitedFrameDelayCount)

Indicates that no limit should be set on the compression window.



---

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)