OSDN Git Service

Simplify
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:09 +0000 (20:39 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:09 +0000 (20:39 +0000)
Commited in SoC by Vitor Sessak on 2008-04-06 18:20:25

Originally committed as revision 13292 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index 9e7aa41..abd88ba 100644 (file)
@@ -293,7 +293,7 @@ int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilt
 
         // If the first filter has an input and none was given, it is
         // implicitly the input of the whole graph.
-        if (pad == 0 && graph->filters[graph->filter_count-1]->input_count == 1) {
+        if (pad == 0 && filter->input_count == 1) {
             if(link_filter(in, inpad, filter, 0))
                 goto fail;
         }