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