Commit 2c43cfe2 authored by Tobias Rapp's avatar Tobias Rapp Committed by Michael Niedermayer

cmdutils: Add some whitespace when printing layouts

Adds some more whitespace between channel layout name and decomposition.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1c55d0ff
...@@ -1645,13 +1645,13 @@ int show_layouts(void *optctx, const char *opt, const char *arg) ...@@ -1645,13 +1645,13 @@ int show_layouts(void *optctx, const char *opt, const char *arg)
if (!name) if (!name)
continue; continue;
descr = av_get_channel_description((uint64_t)1 << i); descr = av_get_channel_description((uint64_t)1 << i);
printf("%-12s%s\n", name, descr); printf("%-14s %s\n", name, descr);
} }
printf("\nStandard channel layouts:\n" printf("\nStandard channel layouts:\n"
"NAME DECOMPOSITION\n"); "NAME DECOMPOSITION\n");
for (i = 0; !av_get_standard_channel_layout(i, &layout, &name); i++) { for (i = 0; !av_get_standard_channel_layout(i, &layout, &name); i++) {
if (name) { if (name) {
printf("%-12s", name); printf("%-14s ", name);
for (j = 1; j; j <<= 1) for (j = 1; j; j <<= 1)
if ((layout & j)) if ((layout & j))
printf("%s%s", (layout & (j - 1)) ? "+" : "", av_get_channel_name(j)); printf("%s%s", (layout & (j - 1)) ? "+" : "", av_get_channel_name(j));
......
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