}
if (overlap) {
av_log(ctx, AV_LOG_WARNING,
- "Inputs overlap: output layout will be meaningless\n");
+ "Input channel layouts overlap: "
+ "output layout will be determined by the number of distinct input channels\n");
for (i = 0; i < nb_ch; i++)
am->route[i] = i;
outlayout = av_get_default_channel_layout(nb_ch);
return AVERROR(ENOMEM);
for (i = 0; i < am->nb_inputs; i++) {
char *name = av_asprintf("in%d", i);
- if (!name)
- return AVERROR(ENOMEM);
AVFilterPad pad = {
.name = name,
.type = AVMEDIA_TYPE_AUDIO,
.filter_samples = filter_samples,
.min_perms = AV_PERM_READ | AV_PERM_PRESERVE,
};
+ if (!name)
+ return AVERROR(ENOMEM);
ff_insert_inpad(ctx, i, &pad);
}
return 0;