WAV: Fix accidental negation

This commit is contained in:
Serial 2024-05-07 15:19:06 -04:00
parent f340ebf39b
commit da91e43d02
No known key found for this signature in database
GPG key ID: DA95198DC17C4568

View file

@ -214,7 +214,7 @@ pub(super) fn read_properties(
decode_err!(@BAIL Wav, "Non-PCM format identified, no \"fact\" chunk found");
}
if bits_per_sample > 0 && (total_samples == 0 || !pcm) {
if bits_per_sample > 0 && (total_samples == 0 || pcm) {
total_samples = stream_len / u32::from(u16::from(channels) * ((bits_per_sample + 7) / 8))
}