mirror of
https://github.com/taglib/taglib.git
synced 2025-07-17 20:44:20 -04:00
correctly read very high sample rates from WavPack files
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user