<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleCursor/samplesRequiredForDecoderRefresh",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleCursor(py)samplesRequiredForDecoderRefresh"
  },
  "title" : "samplesRequiredForDecoderRefresh"
}
-->

# samplesRequiredForDecoderRefresh

The number of samples prior to the current sample, in decode order, the decoder requires to achieve a coherent output at the current decode time.

```
var samplesRequiredForDecoderRefresh: Int { get }
```

## Discussion

This property value is 0 when the decoder doesn’t require samples for refresh or when the track doesn’t contain this information.

Some sample sequences don’t indicate sample dependencies and instead indicate to decode a specific sample with all available accuracy. The system must decode samples in decode order before decoding the specific sample.

---

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)