#define MAX_PLANES 4
-typedef struct {
+typedef struct FFTFILTContext {
const AVClass *class;
RDFTContext *rdft;
int i, j, plane;
out = ff_get_video_buffer(outlink, inlink->w, inlink->h);
- if (!out)
+ if (!out) {
+ av_frame_free(&in);
return AVERROR(ENOMEM);
+ }
av_frame_copy_props(out, in);