Cosmetical: move statement
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:42:29 +0000 (20:42 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:42:29 +0000 (20:42 +0000)
Commited in SoC by Vitor Sessak on 2008-05-24 17:17:19

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

libavfilter/graphparser.c

index 2a8a017..ea2270f 100644 (file)
@@ -218,7 +218,6 @@ static int link_filter_inouts(AVFilterContext *filter,
 
     while(pad--) {
         AVFilterInOut *p = *currInputs;
-        *currInputs = (*currInputs)->next;
         if(!p) {
             av_log(log_ctx, AV_LOG_ERROR,
                    "Not enough inputs specified for the \"%s\" filter.\n",
@@ -226,6 +225,8 @@ static int link_filter_inouts(AVFilterContext *filter,
             return -1;
         }
 
+        *currInputs = (*currInputs)->next;
+
         if(p->filter) {
             if(link_filter(p->filter, p->pad_idx, filter, pad, log_ctx))
                 return -1;