filtfmts-test: Fix use of deprecated API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
Diego Biurrun 2013-11-04 13:56:28 +00:00 committed by Vittorio Giovara
parent 3ef9b7ab95
commit e73996954d

View File

@ -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",