The frame number is incremented before the first frame is swapped out. Fixes ffmpeg creating invalid video files on output if the emulator only runs for a single frame, e.g. FifoCI.