avfilter/af_amix: make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-09-06 00:16:54 +02:00
parent 70f4b453cb
commit 3a3265899b
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ static int config_output(AVFilterLink *outlink)
if (!s->fifos) if (!s->fifos)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
s->nb_channels = av_get_channel_layout_nb_channels(outlink->channel_layout); s->nb_channels = outlink->channels;
for (i = 0; i < s->nb_inputs; i++) { for (i = 0; i < s->nb_inputs; i++) {
s->fifos[i] = av_audio_fifo_alloc(outlink->format, s->nb_channels, 1024); s->fifos[i] = av_audio_fifo_alloc(outlink->format, s->nb_channels, 1024);
if (!s->fifos[i]) if (!s->fifos[i])