History

avfiltergraph: make the AVFilterInOut alloc/free API public

This is required for letting applications to create and destroy AVFilterInOut structs in a convenient way.

Stefano Sabatini committed 15 years ago

Commit 91d3cbe1 parent 12e7e1d6 files · +42 −20Browse files

Showing the changes to libavfilter/avfiltergraph.h (1 of 6 files). Show all

Unified · Split

libavfilter/avfiltergraph.h+13−0
@@ -111,6 +111,19 @@ typedef struct AVFilterInOut { · 110 unmodified lines
111111 struct AVFilterInOut *next;
112112 } AVFilterInOut;
113113
114+/**
115+ * Allocate a single AVFilterInOut entry.
116+ * Must be freed with avfilter_inout_free().
117+ * @return allocated AVFilterInOut on success, NULL on failure.
118+ */
119+AVFilterInOut *avfilter_inout_alloc(void);
120+
121+/**
122+ * Free the supplied list of AVFilterInOut and set *inout to NULL.
123+ * If *inout is NULL, do nothing.
124+ */
125+void avfilter_inout_free(AVFilterInOut **inout);
126+
114127 /**
115128 * Add a graph described by a string to a graph.
116129 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t