aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-08-01 11:34:56 +0000
committerMåns Rullgård <mans@mansr.com>2010-08-01 11:34:56 +0000
commit27971664d3d96f03ea1c001248f1b11feec489e4 (patch)
treed329fa7d429632de4a9ec7c884c89d9477b91eab
parent79ec38d1546a7c4573e078c61a15e43bba19b64b (diff)
downloadffmpeg-27971664d3d96f03ea1c001248f1b11feec489e4.tar.gz
lavfi-showfiltfmts: print one format per line
Originally committed as revision 24647 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--tools/lavfi-showfiltfmts.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/lavfi-showfiltfmts.c b/tools/lavfi-showfiltfmts.c
index ba08f469fe..af7a181089 100644
--- a/tools/lavfi-showfiltfmts.c
+++ b/tools/lavfi-showfiltfmts.c
@@ -76,21 +76,19 @@ int main(int argc, char **argv)
/* print the supported formats in input */
for (i = 0; i < filter_ctx->input_count; i++) {
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++)
- printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name);
- printf("\n");
+ printf("INPUT[%d] %s: %s\n",
+ i, filter_ctx->filter->inputs[i].name,
+ av_pix_fmt_descriptors[fmts->formats[j]].name);
}
/* print the supported formats in output */
for (i = 0; i < filter_ctx->output_count; i++) {
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++)
- printf("%s ", av_pix_fmt_descriptors[fmts->formats[j]].name);
- printf("\n");
+ printf("OUTPUT[%d] %s: %s\n",
+ i, filter_ctx->filter->outputs[i].name,
+ av_pix_fmt_descriptors[fmts->formats[j]].name);
}
fflush(stdout);