Originally committed as revision 13347 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -162,15 +162,12 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, · 161 unmodified lines | |||
| 162 | static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, | 162 | static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, |
| 163 | int index, AVClass *log_ctx) | 163 | int index, AVClass *log_ctx) |
| 164 | { | 164 | { |
| 165 | char *opts; | 165 | char *opts = NULL; |
| 166 | char *name = consume_string(buf); | 166 | char *name = consume_string(buf); |
| 167 | 167 | ||
| 168 | if(**buf == '=') { | 168 | if(**buf == '=') |
| 169 | (*buf)++; | 169 | (*buf)++; |
| 170 | opts = consume_string(buf); | 170 | opts = consume_string(buf); |
| 171 | } else { | ||
| 172 | opts = NULL; | ||
| 173 | } | ||
| 174 | 171 | ||
| 175 | return create_filter(graph, index, name, opts, log_ctx); | 172 | return create_filter(graph, index, name, opts, log_ctx); |
| 176 | } | 173 | } |