diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-11-04 17:56:28 +0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-11-04 19:20:44 +0400 |
commit | e73996954d8e00117056dcefb38ef3d4d2f37967 (patch) | |
tree | d0a5490f8eed93eb1b7c4e814612cac557818b19 | |
parent | 3ef9b7ab95cc703b67a8b658dca45c80df0aaa66 (diff) |
filtfmts-test: Fix use of deprecated API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-rw-r--r-- | libavfilter/filtfmts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/filtfmts.c b/libavfilter/filtfmts.c index 69288af9a3..f68287acf1 100644 --- a/libavfilter/filtfmts.c +++ b/libavfilter/filtfmts.c @@ -71,12 +71,12 @@ int main(int argc, char **argv) } /* create a link for each of the input pads */ - for (i = 0; i < filter_ctx->input_count; i++) { + for (i = 0; i < filter_ctx->nb_inputs; i++) { AVFilterLink *link = av_mallocz(sizeof(AVFilterLink)); link->type = filter_ctx->filter->inputs[i].type; filter_ctx->inputs[i] = link; } - for (i = 0; i < filter_ctx->output_count; i++) { + for (i = 0; i < filter_ctx->nb_outputs; i++) { AVFilterLink *link = av_mallocz(sizeof(AVFilterLink)); link->type = filter_ctx->filter->outputs[i].type; filter_ctx->outputs[i] = link; @@ -88,7 +88,7 @@ int main(int argc, char **argv) ff_default_query_formats(filter_ctx); /* print the supported formats in input */ - for (i = 0; i < filter_ctx->input_count; i++) { + for (i = 0; i < filter_ctx->nb_inputs; i++) { AVFilterFormats *fmts = filter_ctx->inputs[i]->out_formats; for (j = 0; j < fmts->nb_formats; j++) printf("INPUT[%d] %s: %s\n", @@ -97,7 +97,7 @@ int main(int argc, char **argv) } /* print the supported formats in output */ - for (i = 0; i < filter_ctx->output_count; i++) { + for (i = 0; i < filter_ctx->nb_outputs; i++) { AVFilterFormats *fmts = filter_ctx->outputs[i]->in_formats; for (j = 0; j < fmts->nb_formats; j++) printf("OUTPUT[%d] %s: %s\n", |