Merge variable initialization and declaration
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:42:24 +0000 (20:42 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:42:24 +0000 (20:42 +0000)
Commited in SoC by Vitor Sessak on 2008-05-24 17:01:01

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

libavfilter/graphparser.c

index bdcf367..3883ae9 100644 (file)
@@ -207,9 +207,8 @@ static int link_filter_inouts(AVFilterContext *filter,
                               AVFilterInOut **currInputs,
                               AVFilterInOut **openLinks, AVClass *log_ctx)
 {
-    int pad = 0;
+    int pad = filter->input_count;
 
-    pad = filter->input_count;
     while(pad--) {
         AVFilterInOut *p = *currInputs;
         *currInputs = (*currInputs)->next;