Atrac buffer validate RIFF header

Fixes #6009.