diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 00:41:16 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 00:41:16 +0400 |
commit | eee68d96d4e592634562860534acb12247b9a454 (patch) | |
tree | 1ca94252a57acdd0d109eb3918a38dd9461b4205 /libavfilter | |
parent | 67ba10fe56981f3d892258f9ae8d6db3e8799aab (diff) |
Move code out of if
Commited in SoC by Vitor Sessak on 2008-04-23 19:05:32
Originally committed as revision 13334 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/graphparser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 7b8c814b04..ad1e8d473a 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -196,12 +196,12 @@ static int link_filter_inouts(AVFilterContext *filter, 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(AVFilterContext *filter, 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; |