> I don't really understand what you mean here. AE uses the m_channelLayout to detect what channels are there in the input stream and what their positions are, no?

Good point, I will add that check. But as long dvdplayer delivers interleaved to AE, I would do that aac rematrix right after decoder. swr_convert is already there for conversion to float.