Skip to content
Snippets Groups Projects
Commit 3a326589 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/af_amix: make independent of the channel layout

parent 70f4b453
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,7 @@ static int config_output(AVFilterLink *outlink) ...@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment