Took some sanity checks from Fabrice Bellard's code

Also, reset the block size for RA_288, which made playback work.