Revision 27971664 tools/lavfi-showfiltfmts.c

View differences:

tools/lavfi-showfiltfmts.c
76 76
    /* print the supported formats in input */
77 77
    for (i = 0; i < filter_ctx->input_count; i++) {
78 78
        AVFilterFormats *fmts = filter_ctx->inputs[i]->out_formats;
79

  
80
        printf("INPUT[%d] %s: ", i, filter_ctx->filter->inputs[i].name);
81 79
        for (j = 0; j < fmts->format_count; j++)
82
            printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name);
83
        printf("\n");
80
            printf("INPUT[%d] %s: %s\n",
81
                   i, filter_ctx->filter->inputs[i].name,
82
                   av_pix_fmt_descriptors[fmts->formats[j]].name);
84 83
    }
85 84

  
86 85
    /* print the supported formats in output */
87 86
    for (i = 0; i < filter_ctx->output_count; i++) {
88 87
        AVFilterFormats *fmts = filter_ctx->outputs[i]->in_formats;
89

  
90
        printf("OUTPUT[%d] %s: ", i, filter_ctx->filter->outputs[i].name);
91 88
        for (j = 0; j < fmts->format_count; j++)
92
            printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name);
93
        printf("\n");
89
            printf("OUTPUT[%d] %s: %s\n",
90
                   i, filter_ctx->filter->outputs[i].name,
91
                   av_pix_fmt_descriptors[fmts->formats[j]].name);
94 92
    }
95 93

  
96 94
    fflush(stdout);

Also available in: Unified diff