]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/af_amerge: Replace the number by macro for bprint init
authorJun Zhao <mypopydev@gmail.com>
Sun, 10 Jun 2018 08:00:49 +0000 (16:00 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 17 Jun 2018 01:59:33 +0000 (09:59 +0800)
Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavfilter/af_amerge.c

index 9bed8e71279f621c061bb4f5049bfc2021112724..3961c90701d864b2f6df6bf7ad7d2788873638ff 100644 (file)
@@ -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);