---
title: "canAccept(_:)"
framework: MediaExtension
role: symbol
role_heading: Instance Method
platforms: [macOS 14.0+]
path: "mediaextension/mevideodecoder/canaccept(_:)"
---

# canAccept(_:)

Asks the extension whether the decoder can decode frames with the format description that you specify.

## Declaration

```swift
optional func canAccept(_ formatDescription: CMFormatDescription) -> Bool
```

## Parameters

- `formatDescription`: The new format description to evaluate.

## See Also

### Decoding frames

- [decodeFrame(from:options:completionHandler:)](mediaextension/mevideodecoder/decodeframe(from:options:completionhandler:).md)
- [MEDecodeFrameStatus](mediaextension/medecodeframestatus.md)
