diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 00:40:51 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 00:40:51 +0400 |
commit | 4fd9d074d8f82e4f86688563857d265602851569 (patch) | |
tree | 72b246257b1b0ba84a50b541281fc51f5c334992 /libavfilter | |
parent | fec2e513854cbbbc6a3d8cbadcb0fa20dbdd914e (diff) |
Simplify while(pad){pad--; etc} to while(pad--){etc}
Commited in SoC by Vitor Sessak on 2008-04-23 18:03:27
Originally committed as revision 13325 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 5ad8522daa..9518f8e2d3 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -201,9 +201,8 @@ static int link_filter_inouts(AVFilterContext *filter, int pad = 0; pad = filter->input_count; - while(pad) { + while(pad--) { p = *currInputs; - pad--; if(!p) { av_log(log_ctx, AV_LOG_ERROR, "Not enough inputs specified for the \"%s\" filter.\n", @@ -235,9 +234,8 @@ static int link_filter_inouts(AVFilterContext *filter, } pad = filter->output_count; - while(pad) { + while(pad--) { AVFilterInOut *currlinkn = av_malloc(sizeof(AVFilterInOut)); - pad--; currlinkn->name = NULL; currlinkn->type = LinkTypeOut; currlinkn->filter = filter; |