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