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