Replace the number by macro for bprint init.
Unified · Split
| @@ -166,7 +166,7 @@ static int config_output(AVFilterLink *outlink) · 165 unmodified lines | ||
| 166 | 166 | outlink->sample_rate = ctx->inputs[0]->sample_rate; |
| 167 | 167 | outlink->time_base = ctx->inputs[0]->time_base; |
| 168 | 168 | |
| 169 | − av_bprint_init(&bp, 0, 1); | |
| 169 | + av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC); | |
| 170 | 170 | for (i = 0; i < s->nb_inputs; i++) { |
| 171 | 171 | av_bprintf(&bp, "%sin%d:", i ? " + " : "", i); |
| 172 | 172 | av_bprint_channel_layout(&bp, -1, ctx->inputs[i]->channel_layout); |