---
title: samplesRequiredForDecoderRefresh
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avsamplecursor/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.

## Declaration

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

## Discussion

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.

## See Also

### Accessing samples

- [maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan:)](avfoundation/avsamplecursor/maysampleswithearlierdecodetimestampshavepresentationtimestamps(laterthan:).md)
- [maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)](avfoundation/avsamplecursor/maysampleswithlaterdecodetimestampshavepresentationtimestamps(earlierthan:).md)
