[FFmpeg-cvslog] r13334 - trunk/libavfilter/graphparser.c

vitor subversion
Sat May 24 22:41:17 CEST 2008


Author: vitor
Date: Sat May 24 22:41:16 2008
New Revision: 13334

Log:
Move code out of if
Commited in SoC by Vitor Sessak on 2008-04-23 19:05:32


Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	(original)
+++ trunk/libavfilter/graphparser.c	Sat May 24 22:41:16 2008
@@ -196,12 +196,12 @@ static int link_filter_inouts(AVFilterCo
                               AVFilterInOut **currInputs,
                               AVFilterInOut **openLinks, AVClass *log_ctx)
 {
-    AVFilterInOut *p;
     int pad = 0;
 
     pad = filter->input_count;
     while(pad--) {
-        p = *currInputs;
+        AVFilterInOut *p= *currInputs;
+        *currInputs = (*currInputs)->next;
         if(!p) {
             av_log(log_ctx, AV_LOG_ERROR,
                    "Not enough inputs specified for the \"%s\" filter.\n",
@@ -212,10 +212,8 @@ static int link_filter_inouts(AVFilterCo
         if(p->filter) {
             if(link_filter(p->filter, p->pad_idx, filter, pad, log_ctx))
                 return -1;
-            *currInputs = (*currInputs)->next;
             av_free(p);
         } else {
-            *currInputs = (*currInputs)->next;
             p->filter = filter;
             p->pad_idx = pad;
             p->next = *openLinks;




More information about the ffmpeg-cvslog mailing list