summaryrefslogtreecommitdiff
path: root/libavfilter/graphdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/graphdump.c')
-rw-r--r--libavfilter/graphdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index cf8914b558..80f7bf6c98 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -30,6 +30,7 @@
static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
{
const char *format;
+ char layout[128];
AVBPrint dummy_buffer;
if (!buf) {
@@ -49,7 +50,8 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
format = av_x_if_null(av_get_sample_fmt_name(link->format), "?");
av_bprintf(buf, "[%dHz %s:",
(int)link->sample_rate, format);
- av_bprint_channel_layout(buf, link->channels, link->channel_layout);
+ av_channel_layout_describe(&link->ch_layout, layout, sizeof(layout));
+ av_bprintf(buf, "%s", layout);
av_bprint_chars(buf, ']', 1);
break;