Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-09-06 01:16:54 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-06 13:36:28 +0300
commit3a3265899b869f0f1424d60f6b4f10b40d8cf9b0 (patch)
tree33584becd5a7f60d14433770acd7682d96c30455 /libavfilter/af_amix.c
parent70f4b453cba08b2ca1df94715f883c2315deeac6 (diff)
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>
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index 3e5e7ee118..0e32c8affb 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -235,7 +235,7 @@ static int config_output(AVFilterLink *outlink)
if (!s->fifos)
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++) {
s->fifos[i] = av_audio_fifo_alloc(outlink->format, s->nb_channels, 1024);
if (!s->fifos[i])