aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_amerge.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-12-29 13:41:42 +0100
committerMarton Balint <cus@passwd.hu>2024-01-07 22:47:22 +0100
commit363b3ec98a0fd49ca9144ac1b16c272a14e1b0df (patch)
tree4cf6e25183ca7cb05df6db0344bc8f7e7550950a /libavfilter/af_amerge.c
parente4c96dc96ccea3c74373b5be5bacd94049b429e2 (diff)
downloadffmpeg-363b3ec98a0fd49ca9144ac1b16c272a14e1b0df.tar.gz
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/af_amerge.c')
-rw-r--r--libavfilter/af_amerge.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
index 83318f99e4..eabd3f8262 100644
--- a/libavfilter/af_amerge.c
+++ b/libavfilter/af_amerge.c
@@ -153,7 +153,6 @@ static int config_output(AVFilterLink *outlink)
AVFilterContext *ctx = outlink->src;
AMergeContext *s = ctx->priv;
AVBPrint bp;
- char buf[128];
int i;
s->bps = av_get_bytes_per_sample(outlink->format);
@@ -162,12 +161,10 @@ static int config_output(AVFilterLink *outlink)
av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC);
for (i = 0; i < s->nb_inputs; i++) {
av_bprintf(&bp, "%sin%d:", i ? " + " : "", i);
- av_channel_layout_describe(&ctx->inputs[i]->ch_layout, buf, sizeof(buf));
- av_bprintf(&bp, "%s", buf);
+ av_channel_layout_describe_bprint(&ctx->inputs[i]->ch_layout, &bp);
}
av_bprintf(&bp, " -> out:");
- av_channel_layout_describe(&outlink->ch_layout, buf, sizeof(buf));
- av_bprintf(&bp, "%s", buf);
+ av_channel_layout_describe_bprint(&outlink->ch_layout, &bp);
av_log(ctx, AV_LOG_VERBOSE, "%s\n", bp.str);
return 0;