#include "libavutil/log.h"
typedef struct AVFilterGraph {
-#if FF_API_GRAPH_AVCLASS
const AVClass *av_class;
-#endif
+#if FF_API_FOO_COUNT
+ attribute_deprecated
unsigned filter_count;
+#endif
AVFilterContext **filters;
+#if !FF_API_FOO_COUNT
+ unsigned nb_filters;
+#endif
char *scale_sws_opts; ///< sws options to use for the auto-inserted scale filters
+ char *resample_lavr_opts; ///< libavresample options to use for the auto-inserted resample filters
+#if FF_API_FOO_COUNT
+ unsigned nb_filters;
+#endif
} AVFilterGraph;
/**
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.
*