Bump ffmpeg and try to fix small leak with filters.
[dcpomatic.git] / src / lib / filter_graph.cc
index a3bb0093edb1e7a84896d8286b04840962f246d4..7c006aa58834eaf5eb22f1eb80c61d52b37ea5dd 100644 (file)
@@ -33,6 +33,7 @@ extern "C" {
 #include "filter.h"
 #include "exceptions.h"
 #include "image.h"
+#include "ffmpeg_content.h"
 
 #include "i18n.h"
 
@@ -121,7 +122,8 @@ FilterGraph::FilterGraph (shared_ptr<const FFmpegContent> content, libdcp::Size
                throw DecodeError (N_("could not configure filter graph."));
        }
 
-       /* XXX: leaking `inputs' / `outputs' ? */
+       avfilter_inout_free (&inputs);
+       avfilter_inout_free (&outputs);
 }
 
 FilterGraph::~FilterGraph ()