mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
WAV: Fix accidental negation
This commit is contained in:
parent
f340ebf39b
commit
da91e43d02
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue