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.
This commit is contained in:
Wim Taymans 2021-12-09 17:19:22 +01:00
parent 7e5a0849f6
commit 22a210e798

View file

@ -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;