diff options
author | James Almer <jamrial@gmail.com> | 2022-01-20 22:38:44 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 15:42:47 +0300 |
commit | 50e9e11316064ecdee889b18a0b6681a248edcf4 (patch) | |
tree | fc2aaab83c42a0e253cc6eea0a603141ca45eb8f /tools/graph2dot.c | |
parent | 7d532f474de2c9dc05e75a8bbb8fc57d11069a8f (diff) |
tools: convert to new channel layout-API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r-- | tools/graph2dot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c index fd7ea2848e..d96bfd8126 100644 --- a/tools/graph2dot.c +++ b/tools/graph2dot.c @@ -91,8 +91,7 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph) link->time_base.num, link->time_base.den); } else if (link->type == AVMEDIA_TYPE_AUDIO) { char buf[255]; - av_get_channel_layout_string(buf, sizeof(buf), -1, - link->channel_layout); + av_channel_layout_describe(&link->ch_layout, buf, sizeof(buf)); fprintf(outfile, "fmt:%s sr:%d cl:%s tb:%d/%d", av_get_sample_fmt_name(link->format), |