[FFmpeg-soc] [soc]: r2150 - libavfilter/graphparser.c
vitor
subversion at mplayerhq.hu
Wed Apr 23 20:03:27 CEST 2008
Author: vitor
Date: Wed Apr 23 20:03:27 2008
New Revision: 2150
Log:
Simplify while(pad){pad--; etc} to while(pad--){etc}
Modified:
libavfilter/graphparser.c
Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c (original)
+++ libavfilter/graphparser.c Wed Apr 23 20:03:27 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-soc
mailing list