correctly read very high sample rates from WavPack files

This commit is contained in:
David Bryant
2020-07-02 17:22:03 -07:00
parent 6806dc4cf2
commit 43bc11541d

View File

@ -324,7 +324,7 @@ int WavPack::Properties::getNonStandardRate(unsigned char const *buffer, int bco
// only use 4th byte if it's really there
if (!(meta_id & ID_ODD_SIZE))
sample_rate |= static_cast<int32_t>(buffer[3] & 0x7f) << 24;
sample_rate |= static_cast<int32_t>(*buffer & 0x7f) << 24;
return sample_rate;
}