This is required for letting applications to create and destroy AVFilterInOut structs in a convenient way.
Showing the changes to libavfilter/avfiltergraph.h (1 of 6 files). Show all
Unified · Split
| @@ -111,6 +111,19 @@ typedef struct AVFilterInOut { · 110 unmodified lines | ||
| 111 | 111 | struct AVFilterInOut *next; |
| 112 | 112 | } AVFilterInOut; |
| 113 | 113 | |
| 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 | + | |
| 114 | 127 | /** |
| 115 | 128 | * Add a graph described by a string to a graph. |
| 116 | 129 | * |