Correct savestate logic in atrac.

Not 100% sure it works though, it doesn't crash and games run.
USE_FFMPEG builds with this change.