aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-06-10 16:00:49 +0800
committerJun Zhao <jun.zhao@intel.com>2018-06-17 09:59:33 +0800
commit9809ac98bde14f71459a8133f7d98e353370ea33 (patch)
treea5fdb6916ffee3488f04f4ce66e2e32393fbcc10
parente4d14b046ea3c29394ae6e34919e6c67cf57643a (diff)
downloadffmpeg-9809ac98bde14f71459a8133f7d98e353370ea33.tar.gz
lavfi/af_amerge: Replace the number by macro for bprint init
Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
-rw-r--r--libavfilter/af_amerge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
index 9bed8e7127..3961c90701 100644
--- a/libavfilter/af_amerge.c
+++ b/libavfilter/af_amerge.c
@@ -166,7 +166,7 @@ static int config_output(AVFilterLink *outlink)
outlink->sample_rate = ctx->inputs[0]->sample_rate;
outlink->time_base = ctx->inputs[0]->time_base;
- av_bprint_init(&bp, 0, 1);
+ 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_bprint_channel_layout(&bp, -1, ctx->inputs[i]->channel_layout);