rawdec: add check on sample_rate