<!--
{
  "availability" : [
    "ProVideo Encoder Extensions: 1.0.2 -",
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Professional Video Applications",
  "identifier" : "/documentation/professional_video_applications/CompressorMediaDecoder/releaseFrame(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)CompressorMediaDecoder(im)releaseFrame:"
  },
  "title" : "releaseFrame(_:)"
}
-->

# releaseFrame(_:)

Release a decoded frame when the encoder extension no longer needs the frame.

```
func releaseFrame(_ frame: IOSurface!)
```

## Parameters

`frame`

The decoded frame to release.

## Discussion

Use the `releaseFrame:` method to release a frame that the extension obtains by using the `copyFrame:` method and to notify the decoder that the encoder extension no longer needs the frame.

When you use the Objective-C manual reference-counting implementation, call the `releaseFrame:` method before the `frame release` call to insure the `releaseFrame:` method receives a valid frame.

---

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)