diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index ef2a78cb443c64ec076ca74ce40028d3df405e7e..4449bfe54548e7dfaf264aa5cead49c3389e752b 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -44,9 +44,6 @@ AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) { int i; - if(!name) - return NULL; - for(i = 0; i < graph->filter_count; i ++) if(graph->filters[i]->name && !strcmp(name, graph->filters[i]->name)) return graph->filters[i];