* Parse "filter=params" */
| 117 | * Parse "filter=params" |
| 118 | */ |
| 119 | static 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 | |
| 137 | static void free_inout(AVFilterInOut *head) |
| 138 | { |
no test coverage detected