#include "libavutil/log.h"
typedef struct AVFilterGraph {
-#if FF_API_GRAPH_AVCLASS
const AVClass *av_class;
-#endif
unsigned filter_count;
AVFilterContext **filters;
struct AVFilterInOut *next;
} AVFilterInOut;
+/**
+ * Allocate a single AVFilterInOut entry.
+ * Must be freed with avfilter_inout_free().
+ * @return allocated AVFilterInOut on success, NULL on failure.
+ */
+AVFilterInOut *avfilter_inout_alloc(void);
+
+/**
+ * Free the supplied list of AVFilterInOut and set *inout to NULL.
+ * If *inout is NULL, do nothing.
+ */
+void avfilter_inout_free(AVFilterInOut **inout);
+
/**
* Add a graph described by a string to a graph.
*