ffmpeg: don't abuse a global for passing channel layout from input to output