<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTFrameSiloSetTimeRangesForNextPass(_:timeRangeCount:timeRangeArray:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTFrameSiloSetTimeRangesForNextPass"
  },
  "title" : "VTFrameSiloSetTimeRangesForNextPass(_:timeRangeCount:timeRangeArray:)"
}
-->

# VTFrameSiloSetTimeRangesForNextPass(_:timeRangeCount:timeRangeArray:)

Begins a new pass of samples to be added to a frame silo object.

```
func VTFrameSiloSetTimeRangesForNextPass(_ silo: VTFrameSilo, timeRangeCount: CMItemCount, timeRangeArray: UnsafePointer<CMTimeRange>) -> OSStatus
```

## Parameters

`silo`

The frame silo object.

`timeRangeCount`

The count of time ranges in `timeRangeArray`.

`timeRangeArray`

The array of `CMTimeRange` structs.

## Return Value

`kVTFrameSiloInvalidTimeRangeErr` if any time ranges are non-numeric, overlap, or are not in ascending order.

## Discussion

Previously added sample buffers with decode timestamps within the time ranges are deleted from the frame silo object.

> Note:
> It’s not necessary to call this function before adding sample buffers for the first pass.

---

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)