riffdec: Add sanity checks for the sample rate