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

vitor subversion
Sat May 24 22:40:51 CEST 2008


Author: vitor
Date: Sat May 24 22:40:51 2008
New Revision: 13325

Log:
Simplify while(pad){pad--; etc} to while(pad--){etc}
Commited in SoC by Vitor Sessak on 2008-04-23 18:03:27


Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	(original)
+++ trunk/libavfilter/graphparser.c	Sat May 24 22:40:51 2008
@@ -201,9 +201,8 @@ static int link_filter_inouts(AVFilterCo
     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(AVFilterCo
     }
 
     pad = filter->output_count;
-    while(pad) {
+    while(pad--) {
         AVFilterInOut *currlinkn = av_malloc(sizeof(AVFilterInOut));
-        pad--;
         currlinkn->name    = NULL;
         currlinkn->type    = LinkTypeOut;
         currlinkn->filter  = filter;




More information about the ffmpeg-cvslog mailing list