diff --git a/docs/docs/guides/FRAME_PROCESSORS_CREATE_OVERVIEW.mdx b/docs/docs/guides/FRAME_PROCESSORS_CREATE_OVERVIEW.mdx index db37576..0b8a73d 100644 --- a/docs/docs/guides/FRAME_PROCESSORS_CREATE_OVERVIEW.mdx +++ b/docs/docs/guides/FRAME_PROCESSORS_CREATE_OVERVIEW.mdx @@ -69,10 +69,8 @@ You can also manipulate the buffer and return it (or a copy) by using the `Frame #import static inline id resize(Frame* frame, NSArray args) { - NSNumber* width = [arguments objectAtIndex:0]; - NSNumber* height = [arguments objectAtIndex:1]; - - CMSampleBufferRef resizedBuffer = CMSampleBufferCopyAndResize(frame.buffer, width, height); + CMSampleBufferRef resizedBuffer = // ... + return [[Frame alloc] initWithBuffer:resizedBuffer orientation:frame.orientation]; } ```