[FFmpeg-cvslog] r24647 - trunk/tools/lavfi-showfiltfmts.c

mru subversion
Sun Aug 1 13:34:56 CEST 2010


Author: mru
Date: Sun Aug  1 13:34:56 2010
New Revision: 24647

Log:
lavfi-showfiltfmts: print one format per line

Modified:
   trunk/tools/lavfi-showfiltfmts.c

Modified: trunk/tools/lavfi-showfiltfmts.c
==============================================================================
--- trunk/tools/lavfi-showfiltfmts.c	Sun Aug  1 12:47:41 2010	(r24646)
+++ trunk/tools/lavfi-showfiltfmts.c	Sun Aug  1 13:34:56 2010	(r24647)
@@ -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);



More information about the ffmpeg-cvslog mailing list