From 22a210e7981ccf3ab30f28f0829837de5b3ca092 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 9 Dec 2021 17:19:22 +0100 Subject: [PATCH] channelmix: 1 channel MONO or FC should be handled the same. They were handled the same, remove the wrong line to attempt to make them different. --- spa/plugins/audioconvert/channelmix-ops.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/channelmix-ops.c b/spa/plugins/audioconvert/channelmix-ops.c index 74a5a0fd2..84e7e4ade 100644 --- a/spa/plugins/audioconvert/channelmix-ops.c +++ b/spa/plugins/audioconvert/channelmix-ops.c @@ -169,11 +169,8 @@ static int make_matrix(struct channelmix *mix) else src_mask |= (1ULL << SPA_AUDIO_CHANNEL_FC); } - if ((dst_mask & (1Ull << SPA_AUDIO_CHANNEL_MONO)) != 0) { - if (mix->dst_chan == 1) - dst_mask = 0; + if ((dst_mask & (1Ull << SPA_AUDIO_CHANNEL_MONO)) != 0) dst_mask |= (1ULL << SPA_AUDIO_CHANNEL_FC); - } /* shift so that bit 0 is FL */ src_mask >>= 3;