Correct savestate logic in atrac.

Not 100% sure it works though, it doesn't crash and games run.
USE_FFMPEG builds with this change.
Merge pull request #1664 from unknownbrackets/atrac-fix

Correct savestate logic in atrac