diff options
author | Marton Balint <cus@passwd.hu> | 2023-12-29 13:41:42 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-01-07 22:47:22 +0100 |
commit | 363b3ec98a0fd49ca9144ac1b16c272a14e1b0df (patch) | |
tree | 4cf6e25183ca7cb05df6db0344bc8f7e7550950a /libavfilter/graphdump.c | |
parent | e4c96dc96ccea3c74373b5be5bacd94049b429e2 (diff) |
all: use av_channel_layout_describe_bprint instead of av_channel_layout_describe in a few places
Where an AVBPrint buffer is used later anyway.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/graphdump.c')
-rw-r--r-- | libavfilter/graphdump.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index 80f7bf6c98..df79903c52 100644 --- a/libavfilter/graphdump.c +++ b/libavfilter/graphdump.c @@ -30,7 +30,6 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) { const char *format; - char layout[128]; AVBPrint dummy_buffer; if (!buf) { @@ -50,8 +49,7 @@ 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_channel_layout_describe(&link->ch_layout, layout, sizeof(layout)); - av_bprintf(buf, "%s", layout); + av_channel_layout_describe_bprint(&link->ch_layout, buf); av_bprint_chars(buf, ']', 1); break; |