This is not a bug in FFmpeg: aubio initializes libswresample with 2 channels and then passes data that contains just one channel.
That cant really work or how could it ? swresample has no knowledge about what is in the array except what it is told There are multiple ways to provide this information to swr (Answer from Michael on ffmpeg-security) Carl Eugen