MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / parse_filter

Function parse_filter

libavfilter/graphparser.c:119–135  ·  view source on GitHub ↗

* Parse "filter=params" */

Source from the content-addressed store, hash-verified

117 * Parse "filter=params"
118 */
119static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
120 int index, AVClass *log_ctx)
121{
122 char *opts = NULL;
123 char *name = av_get_token(buf, "=,;[\n");
124 AVFilterContext *ret;
125
126 if(**buf == '=') {
127 (*buf)++;
128 opts = av_get_token(buf, "[],;\n");
129 }
130
131 ret = create_filter(graph, index, name, opts, log_ctx);
132 av_free(name);
133 av_free(opts);
134 return ret;
135}
136
137static void free_inout(AVFilterInOut *head)
138{

Callers 1

avfilter_graph_parseFunction · 0.85

Calls 3

av_get_tokenFunction · 0.85
create_filterFunction · 0.85
av_freeFunction · 0.85

Tested by

no test coverage detected