]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_fftfilt.c
avfilter/vf_displace: remove useless requirement that SAR matches between input streams
[ffmpeg] / libavfilter / vf_fftfilt.c
index 307b41a7338a4d1b5fceebffcc981452a7628be3..8a47ed5be45d022c461cb7c98e2d360ef9901d0d 100644 (file)
@@ -33,7 +33,7 @@
 
 #define MAX_PLANES 4
 
-typedef struct {
+typedef struct FFTFILTContext {
     const AVClass *class;
 
     RDFTContext *rdft;
@@ -255,8 +255,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     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);