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