mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
fec2e51385
commit
4fd9d074d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user