Commit 27971664 authored by Måns Rullgård's avatar Måns Rullgård

lavfi-showfiltfmts: print one format per line

Originally committed as revision 24647 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 79ec38d1
...@@ -76,21 +76,19 @@ int main(int argc, char **argv) ...@@ -76,21 +76,19 @@ int main(int argc, char **argv)
/* print the supported formats in input */ /* print the supported formats in input */
for (i = 0; i < filter_ctx->input_count; i++) { for (i = 0; i < filter_ctx->input_count; i++) {
AVFilterFormats *fmts = filter_ctx->inputs[i]->out_formats; AVFilterFormats *fmts = filter_ctx->inputs[i]->out_formats;
printf("INPUT[%d] %s: ", i, filter_ctx->filter->inputs[i].name);
for (j = 0; j < fmts->format_count; j++) for (j = 0; j < fmts->format_count; j++)
printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name); printf("INPUT[%d] %s: %s\n",
printf("\n"); i, filter_ctx->filter->inputs[i].name,
av_pix_fmt_descriptors[fmts->formats[j]].name);
} }
/* print the supported formats in output */ /* print the supported formats in output */
for (i = 0; i < filter_ctx->output_count; i++) { for (i = 0; i < filter_ctx->output_count; i++) {
AVFilterFormats *fmts = filter_ctx->outputs[i]->in_formats; AVFilterFormats *fmts = filter_ctx->outputs[i]->in_formats;
printf("OUTPUT[%d] %s: ", i, filter_ctx->filter->outputs[i].name);
for (j = 0; j < fmts->format_count; j++) for (j = 0; j < fmts->format_count; j++)
printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name); printf("OUTPUT[%d] %s: %s\n",
printf("\n"); i, filter_ctx->filter->outputs[i].name,
av_pix_fmt_descriptors[fmts->formats[j]].name);
} }
fflush(stdout); fflush(stdout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment