Commit b2ac8c70 authored by vitor's avatar vitor

Simplify while(pad){pad--; etc} to while(pad--){etc}

Commited in SoC by Vitor Sessak on 2008-04-23 18:03:27


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13325 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b2b15c6d
...@@ -201,9 +201,8 @@ static int link_filter_inouts(AVFilterContext *filter, ...@@ -201,9 +201,8 @@ static int link_filter_inouts(AVFilterContext *filter,
int pad = 0; int pad = 0;
pad = filter->input_count; pad = filter->input_count;
while(pad) { while(pad--) {
p = *currInputs; p = *currInputs;
pad--;
if(!p) { if(!p) {
av_log(log_ctx, AV_LOG_ERROR, av_log(log_ctx, AV_LOG_ERROR,
"Not enough inputs specified for the \"%s\" filter.\n", "Not enough inputs specified for the \"%s\" filter.\n",
...@@ -235,9 +234,8 @@ static int link_filter_inouts(AVFilterContext *filter, ...@@ -235,9 +234,8 @@ static int link_filter_inouts(AVFilterContext *filter,
} }
pad = filter->output_count; pad = filter->output_count;
while(pad) { while(pad--) {
AVFilterInOut *currlinkn = av_malloc(sizeof(AVFilterInOut)); AVFilterInOut *currlinkn = av_malloc(sizeof(AVFilterInOut));
pad--;
currlinkn->name = NULL; currlinkn->name = NULL;
currlinkn->type = LinkTypeOut; currlinkn->type = LinkTypeOut;
currlinkn->filter = filter; currlinkn->filter = filter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment